This content has been marked as final. Show 3 replies
You have this SuggestionBox as part of a FormItem. And you want to move it ABOVE the Form, is that correct?
Having the SuggestionBox with all those parent.parent things is going to get you into trouble. You'd be better off having the key stroke in the SuggestionBox TextInput field dispatch a custom event which would be picked up by the application. Then the application could move it as you needed.
>> Then the application could move it as you needed.
If I move the suggestionbox to the front with setChildIndex in the main application, all that happens is that the suggestionbox becomes the LAST formitem on the form. It doesn't move on TOP of the other form items.
I'm not understanding what you want to do. The z-order is the depth - how one component stacks on top of another as if they were 3D objects. Like putting pieces of paper on top of each other. The one with the lowest depth (z index) is at the bottom.
But now it sounds like you want arrange their order in the form container. If that's true, then your SuggestionBox should still dispatch and event. The Application, upon receiving this event, can tell the Form to change the SuggestionBox's childIndex to zero so it appears at the top of the Form.