I have a student who wants to have layers of objects that can be moved around. She wants to change the “depth” of these different elements. I know you can set the depth of items in design mode - I assume there is a way to do that with code too? I looked at setProperty but that didn’t seem to have what I was looking for.
The only way to control layering from code is to set the z-index with setStyle(). By default all elements have a z-index of 0, so increasing any element’s z-index will put it at the top of the stack. Eg.