Skip to main content

DialogHandler <S, T>

Index

Constructors

constructor

  • 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

    Returns default<S, T>

Methods

addDataListener

  • addDataListener(listener: (data: any) => void): void
  • Parameters

    • listener: (data: any) => void

      Returns void

    close

    • close(buttonType: any, data: any): void
    • Parameters

      • buttonType: any
      • data: any

      Returns void

    dispatchEvent

    • dispatchEvent(data: object): void
    • Parameters

      • data: object

      Returns void

    getResult

    • getResult(): undefined | { buttonType: number; result: T extends undefined ? S : T }
    • Returns undefined | { buttonType: number; result: T extends undefined ? S : T }

    open

    • open(): Promise<{ buttonType: number; result: T extends undefined ? S : T }>
    • Returns Promise<{ buttonType: number; result: T extends undefined ? S : T }>

    removeDataListener

    • removeDataListener(listener: (data: any) => void): void
    • Parameters

      • listener: (data: any) => void

        Returns void