Reorder client controls

edited June 2014 in Enyo 2

Is it possible to easily re-order controls in a container? I need this so that the user can drag & drop controls in a given container to order them.

I haven't found something like `control.moveBefore(otherControl)`. I tried to play with destroy, addBefore, setContainer, render, ... on the child to move. But nothing's worked yet.

Maybe I need to work with the container instead.
I tried to use removeChild, addBefore and then addChild (then render the container) but the addBefore property is ignored.
I guess I can reorder its controls array and re-render it but this seems dirty.

Any help?


Sign In or Register to comment.