Using the NumberValidator class : NumberValidator « Data Model « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Data Model » NumberValidatorScreenshots 
Using the NumberValidator class
Using the NumberValidator class
    
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Form>
    <mx:FormItem label="Number of Mac (max 10 per customer)">
      <mx:TextInput id="quantityInput" />
    </mx:FormItem>
    <mx:FormItem>
      <mx:Button label="Submit" />
    </mx:FormItem>
  </mx:Form>
  <mx:NumberValidator id="numV" source="{quantityInput}"
    property="text" minValue="1" maxValue="10" domain="int" />
</mx:Application>

   
    
    
    
  
Related examples in the same category
1.NumberValidator used to check a value and if the number is an integerNumberValidator used to check a value and if the number is an integer
2.Use NumberValidator to check negative valueUse NumberValidator to check negative value
3.Check integer value range with NumberValidatorCheck integer value range with NumberValidator
4.Set domain of value to check to int for NumberValidatorSet domain of value to check to int for NumberValidator
5.Set minimum and maximum values of a NumberValidatorSet minimum and maximum values of a NumberValidator
6.Config NumberValidator With data BindingConfig NumberValidator With data Binding
7.Using NumberValidator class to ensure that an integer is between 1 and 10Using NumberValidator class to ensure that an integer is between 1 and 10
w_w_w.__j__av_a__2_s_.__c_om__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.