@docsvision/webclient
Version:
Type definitions for DocsVision WebClient scripts and extensions.
20 lines (19 loc) • 1.15 kB
TypeScript
import { LayoutControl } from "@docsvision/webclient/System/BaseControl";
import { IBubblingEventInfo } from "@docsvision/webclient/System/ISupportEventBubling";
import { ExecutionOrder } from '@docsvision/webclient/System/ExecutionOrder';
import { BasicEventHandler, IBasicEvent } from "@docsvision/webclient/System/IBasicEvent";
/** @internal */
export declare abstract class BasicEvent<T> implements IBasicEvent<T> {
protected handlers: BasicEventHandler<T>[];
protected mDefaultSender: () => LayoutControl;
protected mEventInfo: IBubblingEventInfo;
constructor(sender: any, subscribers?: BasicEventHandler<T>[]);
subscribe(handler: BasicEventHandler<T>, executionOrder?: ExecutionOrder): void;
unsubscribe(handler: BasicEventHandler<T>): void;
get defaultSender(): () => LayoutControl;
set defaultSender(val: () => LayoutControl);
protected triggerAll(sender?: any, data?: T): void;
protected triggerBubblingEvent(sender?: any, data?: T): void;
static isEvent(object: any): boolean;
}
export declare function callBasicEventHandlers<T>(handlers: BasicEventHandler<T>[], data: T, actualSender: any): void;