Skip to main content

DialogHandler <T>

Index

Constructors

constructor

  • new DialogHandler<T>(config: any, open: any, close: any, dispatchEvent: any, addDataListener: any): default<T>
  • Type parameters

    • T = unknown

    Parameters

    • config: any
    • open: any
    • close: any
    • dispatchEvent: any
    • addDataListener: any

    Returns default<T>

Methods

addDataListener

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

    • listener: (data: any) => void

      Returns void

    close

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

      • buttonType: number
      • data: any = undefined

      Returns void

    dispatchEvent

    • dispatchEvent(data: object): void
    • Parameters

      • data: object

      Returns void

    getResult

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

    open

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

    removeDataListener

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

      • listener: (data: any) => void

        Returns void