I have a design issure, which is something like:
//contains Image and Text
I like to switch the positions of the two VBox with just one click on a button. I think it can also be done by swarping the
contents of the two VBox so it looks switch of the two VBox. Maybe drag and Drop on the VBoxes? Any suggestions? Thx.
I think you could use states for this thing. First defining two states for the both positions of the layout and after clicking the button you could change to the state you want to switch to.
Use swapChildren and swapChildrenAt functions.