projects/wms-framework/src/lib/basecomponentmodel/INotifyDataErrorInfo.ts
DataErrorsChanged event arguments class
Properties |
constructor(propertyName?: string)
|
||||||
Parameters :
|
PropertyName |
Type : string
|
Default value : null
|
import { SubscriptionEvent } from '../utils/SubscriptionEvent';
/**
* DataErrorsChanged event arguments class
*
* @export
* @class DataErrorsChangedEventArgs
* @wType System.ComponentModel.DataErrorsChangedEventArgs
*/
export class DataErrorsChangedEventArgs {
PropertyName: string = null;
constructor(propertyName?: string) {
this.PropertyName = propertyName;
}
}
/**
* Interface of INotifyDataErrorInfo
*
* @export
* @interface INotifyDataErrorInfo
* @wInterface System.ComponentModel.INotifyDataErrorInfo
*/
export interface INotifyDataErrorInfo {
HasErrors: boolean;
ErrorsChanged: SubscriptionEvent<
(sender: unknown, args: DataErrorsChangedEventArgs) => void
>;
GetErrors(propertyName: string): Iterable<unknown>;
}