React Validator Events
This section describes events fired by this widget.
disposing
Raised before the widget is disposed of.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | The model data. Available only if you use Knockout. | 
Main article: onDisposing
See Also
initialized
Raised only once, after the widget is initialized.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | 
Main article: onInitialized
See Also
optionChanged
Raised after a widget option is changed.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| name | The modified option if it belongs to the first level. Otherwise, the first-level option it is nested into. | |
| model | The model data. Available only if you use Knockout. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The widget's instance. | |
| fullName | The path to the modified option that includes all parent options. | |
| value | any | The modified option's new value. | 
Main article: onOptionChanged
See Also
validated
Raised after a value is validated.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| name | The value of the name option. | |
| isValid | Indicates whether all the rules checked for the value are satisfied. | |
| value | The validated value. | |
| validationRules | Array<RequiredRule | NumericRule | RangeRule | StringLengthRule | CustomRule | CompareRule | PatternRule | EmailRule> | An array of the validation rules specified for the current dxValidator object. | 
| brokenRule | | | | | | | | | The object representing the first broken rule in the list of the specified validation rules. | 
Main article: onValidated
See Also
If you have technical questions, please create a support ticket in the DevExpress Support Center.