Max char and restrict letter for TextInput : TextInput Data « Components « Flex






Max char and restrict letter for TextInput

Max char and restrict letter for TextInput
          

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
   
  <mx:Panel title="title"  width="500" height="90" layout="horizontal">    
    <mx:TextInput id="ti1" maxChars="10" restrict="0-9"/>
    
  </mx:Panel>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Using actionscript to access TextInput data in TextUsing actionscript to access TextInput data in Text
2.Use TextInput as the Credit card number data sourceUse TextInput as the Credit card number data source
3.Show an MXML-based data model with properties of TextInput controls bound into its fieldsShow an MXML-based data model with properties of TextInput controls bound into its fields
4.A TextInput's text property is bound to two data models, and data model properties are bound to the text properties of two Label controls.A TextInput's text property is bound to two data models, and data model properties are bound to the text properties of two Label controls.
5.shows an MXML-based data model with properties of TextInput controls bound into its fields:shows an MXML-based data model with properties of TextInput controls bound into its fields:
6.Restrict input letter for TextInputRestrict input letter for TextInput
7.Add item to a list from TextInputAdd item to a list from TextInput