Sets value for a public variable and bind to TextInput : TextInput Data Binding « Components « Flex






Sets value for a public variable and bind to TextInput

Sets value for a public variable and bind to TextInput
          
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    backgroundColor="white">
    <mx:TextInput text="{defaultValue}">
        <mx:Script>
            
            [Bindable]
            public var defaultValue:String = "";
          
        </mx:Script>
    </mx:TextInput>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Model with data binding to TextInputModel with data binding to TextInput
2.Binding to a TextInput controlBinding to a TextInput control
3.Binding 2 way between Form TextInput fieldsBinding 2 way between Form TextInput fields
4.Binding one TextInput to another TextInputBinding one TextInput to another TextInput
5.Bind variable to a TextInputBind variable to a TextInput
6.Bind TextInput to TextBind TextInput to Text
7.Bind TextInput to ModelBind TextInput to Model
8.Convert value in TextInput to number and bindConvert value in TextInput to number and bind
9.Use tag to define a data binding from a TextInput control to a Label controlUse <fx:Binding> tag to define a data binding from a TextInput control to a Label control
10.Bind data entered in a TextInput control to a data modelBind data entered in a TextInput control to a data model
11.Bind Label control to TextInput control's textBind Label control to TextInput control's text
12.Use one tag along with curly brace syntax to bind the Label control's text to two different TextInput controlsUse one <mx:Binding/> tag along with curly brace syntax to bind the Label control's text to two different TextInput controls
13.Bind TextInput to ArrayCollection with BindingUtilsBind TextInput to ArrayCollection with BindingUtils
14.Binding a Text and TextInputBinding a Text and TextInput
15.Use curly braces ({}) syntax to show a Text control that gets its data from a TextInput control's text propertyUse curly braces ({}) syntax to show a Text control that gets its data from a TextInput control's text property
16.Use curly braces ({}) syntax to show a Label control that gets its data from a TextInput control's text propertyUse curly braces ({}) syntax to show a Label control that gets its data from a TextInput control's text property
17.Show a method with two parameters bound to the text properties of TextInput controls.Show a method with two parameters bound to the text properties of TextInput controls.
18.Bound TextInput ControlBound TextInput Control
19.Cause a TextInput to modify the LabelCause a TextInput to modify the Label