File

projects/wms-framework/src/lib/basecomponentmodel/INotifyDataErrorInfo.ts

Description

DataErrorsChanged event arguments class

Index

Properties

Constructor

constructor(propertyName?: string)
Parameters :
Name Type Optional
propertyName string Yes

Properties

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>;
}

result-matching ""

    No results matching ""