How to create a collapsable function.

Some native functions in blueprint has a collapsable option where some arguments are by default hidden.

An example of this is the PrintString, by default it has a short form showing only “In String” arg:
full.PNG

but if you click in the arrow button in the bottom you can see a few more arguments:

full.PNG

Is there a way to put this behavior in my blueprint functions?
https://forums.unrealengine.com/core/image/gif;base64
​​​​