Bind TextInput to Model : TextInput Data Binding « Components « Flex
- Flex
- Components
- TextInput Data Binding
Bind TextInput to Model

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Model id="myModel">
<myModel>
<a>{nameInput.text}</a>
</myModel>
</mx:Model>
<mx:Form>
<mx:FormItem label="Last Name:">
<mx:TextInput id="nameInput" />
</mx:FormItem>
</mx:Form>
<mx:Text text="{'Conditional: '+myModel.a}" />
</mx:Application>
Related examples in the same category