File

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

Description

Interface of INotifyDataErrorInfo

Index

Properties
Methods

Methods

GetErrors
GetErrors(propertyName: string)
Parameters :
Name Type Optional
propertyName string No
Returns : Iterable<unknown>

Properties

ErrorsChanged
ErrorsChanged: SubscriptionEvent<void>
Type : SubscriptionEvent<void>
HasErrors
HasErrors: boolean
Type : boolean
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 ""