Class: SC.Validator.Number
Extends
SC.Validator.
Defined in: number.js
Field Summary
- Fields borrowed from SC.Object:
- concatenatedProperties, isDestroyed, isObject, nextProperty, object, property, target, toInvalidate
- Fields borrowed from SC.Observable:
- isObservable
Instance Methods
- fieldValueForObject(object, form, field)
- objectForFieldValue(value, form, field)
- validate(form, field)
- validateError(form, field)
- validateKeyDown(form, field, charStr)
Field Detail
placesNumber of decimal places to show.
If 0, then numbers will be treated as integers. Otherwise, numbers will show with a fixed number of decimals.
Instance Method Detail
fieldValueForObject(object, form, field)
- Parameters:
- object
- form
- field
objectForFieldValue(value, form, field)
- Parameters:
- value
- form
- field
validate(form, field)
- Parameters:
- form
- field
validateError(form, field)
- Parameters:
- form
- field
validateKeyDown(form, field, charStr)
Allow only numbers, dashes, period, and commas
- Parameters:
- form
- field
- charStr
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:21 GMT-0600 (CST)