Skip to content

Commit c15188e

Browse files
Validator Event Handlers Types (T1269388) (DevExpress#6976)
1 parent 2d4321b commit c15188e

File tree

30 files changed

+242
-5
lines changed

30 files changed

+242
-5
lines changed

api-reference/10 UI Components/dxValidationGroup/9 Validation Result/Validation Result.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ id: dxValidationGroupResult
33
type: Object
44
module: ui/validation_group
55
export: dxValidationGroupResult
6+
generateTypeLink:
67
---
78
---
89
##### shortDescription
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
id: dxValidator.Options.onDisposing
3+
type: function(e)
4+
---
5+
---
6+
##### shortDescription
7+
A function that is executed before the UI component is [disposed of](/api-reference/10%20UI%20Components/dxValidator/3%20Methods/dispose().md '{basewidgetpath}/Methods/#dispose').
8+
9+
##### param(e): ui/validator:DisposingEvent
10+
Information about the event.
11+
12+
##### field(e.component): {WidgetName}
13+
The UI component's instance.
14+
15+
##### field(e.element): DxElement
16+
#include common-ref-elementparam with { element: "UI component" }
17+
18+
---
19+
<!-- Description goes here -->
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
id: dxValidator.Options.onInitialized
3+
type: function(e)
4+
---
5+
---
6+
##### shortDescription
7+
A function used in JavaScript frameworks to save the UI component instance.
8+
9+
##### param(e): ui/validator:InitializedEvent
10+
Information about the event.
11+
12+
##### field(e.component): {WidgetName}
13+
The UI component's instance.
14+
15+
##### field(e.element): DxElement
16+
#include common-ref-elementparam with { element: "UI component" }
17+
18+
---
19+
#include common-code-on-initialized
20+
21+
#####See Also#####
22+
23+
#include common-get-instance
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
id: dxValidator.Options.onOptionChanged
3+
type: function(e)
4+
---
5+
---
6+
##### shortDescription
7+
A function that is executed after a UI component property is changed.
8+
9+
##### param(e): ui/validator:OptionChangedEvent
10+
Information about the event.
11+
12+
##### field(e.component): {WidgetName}
13+
The UI component's instance.
14+
15+
##### field(e.element): DxElement
16+
#include common-ref-elementparam with { element: "UI component" }
17+
18+
##### field(e.fullName): String
19+
The path to the modified property that includes all parent properties.
20+
21+
##### field(e.name): String
22+
The modified property if it belongs to the first level. Otherwise, the first-level property it is nested into.
23+
24+
##### field(e.previousValue): any
25+
The UI component's previous value.
26+
27+
##### field(e.value): any
28+
The modified property's new value.
29+
30+
---
31+
<!-- Description goes here -->

api-reference/10 UI Components/dxValidator/1 Configuration/onValidated.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ type: function(validatedInfo)
66
##### shortDescription
77
A function that is executed after a value is validated.
88

9-
##### param(validatedInfo): Object
9+
##### param(validatedInfo): ui/validator:ValidatedEvent
1010
Information about the event.
1111

12-
##### field(validatedInfo.brokenRule): RequiredRule | NumericRule | RangeRule | StringLengthRule | CustomRule | CompareRule | PatternRule | EmailRule | AsyncRule
12+
##### field(validatedInfo.brokenRule): ValidationRule
1313
The object that represents the first broken rule on the list of specified validation rules.
1414

15-
##### field(validatedInfo.brokenRules): Array<RequiredRule, NumericRule, RangeRule, StringLengthRule, CustomRule, CompareRule, PatternRule, EmailRule, AsyncRule>
15+
##### field(validatedInfo.brokenRules): Array<ValidationRule>
1616
An array of [validationRules](/api-reference/10%20UI%20Components/dxValidator/8%20Validation%20Rules '/Documentation/ApiReference/UI_Components/dxValidator/Validation_Rules/') that failed to pass the check.
1717

1818
##### field(validatedInfo.isValid): Boolean
@@ -24,7 +24,7 @@ The value of the [name](/api-reference/10%20UI%20Components/dxValidator/1%20Conf
2424
##### field(validatedInfo.status): Enums.ValidationStatus
2525
Indicates the validation [status](/api-reference/10%20UI%20Components/dxValidator/9%20Validation%20Result/status.md '/Documentation/ApiReference/UI_Components/dxValidator/Validation_Result/#status').
2626

27-
##### field(validatedInfo.validationRules): Array<RequiredRule, NumericRule, RangeRule, StringLengthRule, CustomRule, CompareRule, PatternRule, EmailRule, AsyncRule>
27+
##### field(validatedInfo.validationRules): Array<ValidationRule>
2828
An array of validation rules specified for the current **dxValidator** object.
2929

3030
##### field(validatedInfo.value): Object

api-reference/10 UI Components/dxValidator/8 Validation Rules/AsyncRule/AsyncRule.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ id: AsyncRule
33
type: Object
44
module: common
55
export: AsyncRule
6+
generateTypeLink:
67
---
78
---
89
##### shortDescription

api-reference/10 UI Components/dxValidator/8 Validation Rules/CompareRule/CompareRule.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ id: CompareRule
33
type: Object
44
module: common
55
export: CompareRule
6+
generateTypeLink:
67
---
78
---
89
##### shortDescription

api-reference/10 UI Components/dxValidator/8 Validation Rules/CustomRule/CustomRule.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ id: CustomRule
33
type: Object
44
module: common
55
export: CustomRule
6+
generateTypeLink:
67
---
78
---
89
##### shortDescription

api-reference/10 UI Components/dxValidator/8 Validation Rules/EmailRule/EmailRule.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ id: EmailRule
33
type: Object
44
module: common
55
export: EmailRule
6+
generateTypeLink:
67
---
78
---
89
##### shortDescription

api-reference/10 UI Components/dxValidator/8 Validation Rules/NumericRule/NumericRule.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ id: NumericRule
33
type: Object
44
module: common
55
export: NumericRule
6+
generateTypeLink:
67
---
78
---
89
##### shortDescription

0 commit comments

Comments
 (0)