Use tag to define a data binding from a TextInput control to a Label control : TextInput Data Binding « Components « Flex






Use tag to define a data binding from a TextInput control to a Label control

Use <fx:Binding> tag to define a data binding from a TextInput control to a Label control
          

<!--
Code from Flex 4 Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1) proper attribution to Adobe is given as the owner of the user guide; and 
  (2) any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->


<!-- binding/BasicBindingMXML.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx">
    <s:layout>
        <s:VerticalLayout />
    </s:layout>
    <fx:Binding source="myTI.text" destination="myText.text" />
    <s:TextInput id="myTI" />
    <s:Label id="myText" />
</s:Application>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Sets value for a public variable and bind to TextInputSets value for a public variable and bind to TextInput
2.Model with data binding to TextInputModel with data binding to TextInput
3.Binding to a TextInput controlBinding to a TextInput control
4.Binding 2 way between Form TextInput fieldsBinding 2 way between Form TextInput fields
5.Binding one TextInput to another TextInputBinding one TextInput to another TextInput
6.Bind variable to a TextInputBind variable to a TextInput
7.Bind TextInput to TextBind TextInput to Text
8.Bind TextInput to ModelBind TextInput to Model
9.Convert value in TextInput to number and bindConvert value in TextInput to number and bind
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