Class: SC.Validator.PositiveInteger
Extends
SC.Validator.
Defined in: positive_integer.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
defaultValue NumberDefault Value to be displayed. If the value in the text field is null, undefined or an empty string, it will be replaced by this value.
- Default value:
- null
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
- Parameters:
- form
- field
- charStr
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:21 GMT-0600 (CST)