/** * DevExtreme (ui/validation_group.d.ts) * Version: 25.1.7 * Build date: Mon Nov 10 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import DOMComponent, { DOMComponentOptions, } from '../core/dom_component'; import { DxPromise, } from '../core/utils/deferred'; import { EventInfo, InitializedEventInfo, ChangedOptionInfo, } from '../events'; import { AsyncRule, CompareRule, CustomRule, EmailRule, NumericRule, PatternRule, RangeRule, RequiredRule, StringLengthRule, ValidationStatus, } from '../common'; export { ValidationStatus, }; /** * The type of the disposing event handler's argument. */ export type DisposingEvent = EventInfo; /** * The type of the initialized event handler's argument. */ export type InitializedEvent = InitializedEventInfo; /** * The type of the optionChanged event handler's argument. */ export type OptionChangedEvent = EventInfo & ChangedOptionInfo; /** * * @deprecated * @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution. */ export interface dxValidationGroupOptions extends DOMComponentOptions { } /** * The ValidationGroup is a UI component that allows you to validate several editors simultaneously. */ export default class dxValidationGroup extends DOMComponent { /** * Resets the value and validation result of the editors that are included to the current validation group. */ reset(): void; /** * Validates rules of the validators that belong to the current validation group. */ validate(): ValidationResult; } export type ValidationResult = dxValidationGroupResult; /** * A group validation result. * @deprecated * @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution. */ export interface dxValidationGroupResult { /** * An array of the validation rules that failed. */ brokenRules?: Array; /** * A promise that is fulfilled when all async rules are validated. */ complete?: DxPromise; /** * Indicates whether all the rules checked for the group are satisfied. */ isValid?: boolean; /** * Indicates the validation status. */ status?: ValidationStatus; /** * Validator UI components included in the validated group. */ validators?: Array; } export type Properties = dxValidationGroupOptions; /** * @deprecated use Properties instead * @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution. */ export type Options = dxValidationGroupOptions;