Wednesday, May 2, 2012

Upper and Lower limit for numeric fields as xtype in Extjs(Extended JavaScript Library)


Use of xtype as numberfield.
This code helps you with upper and lower limit values for the numeric fields enabling user to scroll through any range of numeric value
Numeric input values for this field can have upper and lower limits.
This can be set as follows:-
{header: "Quantity", width:70, dataIndex: 'Quantity', sortable: true,                    
                             editor: {
                                xtype:'numberfield',
                                minValue: 1,
                                maxValue: 100,
                                allowBlank:false
                             }
                         }

No comments:

Post a Comment