Clear Up
SharpKit Reference

NumberConfig Class

Namespace: Ext.form.field

Constructors

Name Description
NumberConfig(Object[])

Fields

Name Description
allowDecimals False to disallow decimal values Defaults to: true
autoStripChars True to automatically strip not allowed characters from the field. Defaults to: false
baseChars The base set of characters to evaluate as valid numbers. Defaults to: "0123456789"
decimalPrecision The maximum precision to display after the decimal separator Defaults to: 2
decimalSeparator Character(s) to allow as the decimal separator Defaults to: "."
maxText Error text to display if the maximum value validation fails. Defaults to: "The maximum value for this field is {0}"
maxValue The maximum allowed value. Will be used by the field's validation logic, and for enabling/disabling the up spinner button. Defaults to Number.MAX_VALUE.
minText Error text to display if the minimum value validation fails. Defaults to: "The minimum value for this field is {0}"
minValue The minimum allowed value. Will be used by the field's validation logic, and for enabling/disabling the down spinner button. Defaults to Number.NEGATIVE_INFINITY.
nanText Error text to display if the value is not a valid number. For example, this can happen if a valid character like '.' or '-' is left in the field with no number. Defaults to: "{0} is not a valid number"
negativeText Error text to display if the value is negative and minValue is set to 0. This is used instead of the minText in that circumstance only. Defaults to: "The value cannot be negative"
step Specifies a numeric interval by which the field's value will be incremented or decremented when the user invokes the spinner. Defaults to: 1
submitLocaleSeparator False to ensure that the getSubmitValue method strips always uses . as the separator, regardless of the decimalSeparator configuration. Defaults to: true
© Copyright 2005-2011 SharpKit. All rights reserved.