UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

91 lines (79 loc) 2.75 kB
/** * DevExtreme (ui/validation_summary.d.ts) * Version: 26.1.3 * Build date: Wed Jun 10 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { EventInfo, NativeEventInfo, InitializedEventInfo, ChangedOptionInfo, ItemInfo, } from '../events'; import CollectionWidget, { CollectionWidgetOptions, ItemLike, } from './collection/ui.collection_widget.base'; /** * The type of the contentReady event handler&apos;s argument. */ export type ContentReadyEvent<TItem extends ItemLike = any, TKey = any> = EventInfo<dxValidationSummary<TItem, TKey>>; /** * The type of the disposing event handler&apos;s argument. */ export type DisposingEvent<TItem extends ItemLike = any, TKey = any> = EventInfo<dxValidationSummary<TItem, TKey>>; /** * The type of the initialized event handler&apos;s argument. */ export type InitializedEvent<TItem extends ItemLike = any, TKey = any> = InitializedEventInfo<dxValidationSummary<TItem, TKey>>; /** * The type of the itemClick event handler&apos;s argument. */ export type ItemClickEvent<TItem extends ItemLike = any, TKey = any> = NativeEventInfo<dxValidationSummary<TItem, TKey>, MouseEvent | PointerEvent> & ItemInfo<TItem>; /** * The type of the optionChanged event handler&apos;s argument. */ export type OptionChangedEvent<TItem extends ItemLike = any, TKey = any> = EventInfo<dxValidationSummary<TItem, TKey>> & ChangedOptionInfo; /** * * @deprecated */ export interface dxValidationSummaryOptions< TItem extends ItemLike = any, TKey = any, > extends CollectionWidgetOptions<dxValidationSummary<TItem, TKey>, TItem, TKey> { /** * Specifies the validation group for which summary should be generated. */ validationGroup?: string; } /** * A UI component for displaying the result of checking validation rules for editors. */ export default class dxValidationSummary< TItem extends ItemLike = any, TKey = any, > extends CollectionWidget<dxValidationSummaryOptions<TItem, TKey>, TItem, TKey> { /** * Resubscribes the ValidationSummary to a target ValidationGroup. */ refreshValidationGroup(): void; } export type ExplicitTypes< TItem extends ItemLike, TKey, > = { Properties: Properties<TItem, TKey>; ContentReadyEvent: ContentReadyEvent<TItem, TKey>; DisposingEvent: DisposingEvent<TItem, TKey>; InitializedEvent: InitializedEvent<TItem, TKey>; ItemClickEvent: ItemClickEvent<TItem, TKey>; OptionChangedEvent: OptionChangedEvent<TItem, TKey>; }; export type Properties< TItem extends ItemLike = any, TKey = any, > = dxValidationSummaryOptions<TItem, TKey>;