Constructors
- new DialogHandler<S, T>(config: any, open: any, close: any, dispatchEvent: any, addDataListener: any): default<S, T>
Type parameters
- S = void
- T: unknown = void
Parameters
config: any
open: any
close: any
dispatchEvent: any
addDataListener: any
Methods
- addDataListener(listener: (data: any) => void): void
Parameters
listener: (data: any) => void
Returns void
- close(buttonType: any, data: any): void
- dispatchEvent(data: object): void
- getResult(): undefined | { buttonType: number; result: T extends undefined ? S : T }
Returns undefined | { buttonType: number; result: T extends undefined ? S : T }
- open(): Promise<{ buttonType: number; result: T extends undefined ? S : T }>
Returns Promise<{ buttonType: number; result: T extends undefined ? S : T }>
- removeDataListener(listener: (data: any) => void): void
Parameters
listener: (data: any) => void
Returns void