Validation Controls
Atlas provides several client-side validation controls.
Sys.UI.Validator (General Class)
Method |
Description |
---|---|
|
Returns the validator’s data context |
|
Returns the validator’s error message |
|
Sets the validator’s error message |
|
Whether the validator has been violated or not |
|
Executes the validator |
|
Links the validator to its owner element |
|
Abstract method to validate the element |
Sys.UI.ValidationGroup
Method |
Description |
---|---|
|
Returns the group’s associated controls |
|
Whether the data in the group is invalid (in terms of the validators) or not |
Sys.UI.RequiredFieldValidator
This class implements validate()
but does not provide additional methods.
Sys.UI.TypeValidator
Method |
Description |
---|---|
|
Returns the type the validator has to check |
|
Sets the type the validator has to check |
Sys.UI.RangeValidator
Method |
Description |
---|---|
|
Returns the lower bound of the validator’s range |
|
Sets the lower bound of the validator’s range |
|
Returns the upper bound of the validator’s range |
|
Sets the upper bound of the validator’s range |
Sys.UI.RegexValidator
Method |
Description |
---|---|
|
Returns the regular expression the validator has to check |
|
Get Programming Atlas now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.