I didn't find a way to move the label to the top of the input
<!--- Form to display the attributes of the active feature. --> <mx:Form id="form" width="100%" height="100%" enabled.disabled="false" horizontalScrollPolicy="off" maxHeight="{hostComponent.getStyle('formMaxHeight')}" verticalScrollPolicy="auto" childAdd="form_childAddHandler(event)"> </mx:Form> // in script tag protected function form_childAddHandler(event:ChildExistenceChangedEvent):void { var displayObject:DisplayObject = event.relatedObject; if (displayObject != null && displayObject is mx.containers.FormItem) { var formItem:FormItem = displayObject as FormItem; var labelValue:String = formItem.label; formItem.label = ""; var lbl:Label = new Label(); lbl.text = labelValue; formItem.addChildAt(lbl, 0); } }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.