Class DialogService

Service for open a dialog

Hierarchy

  • DialogService

Constructors

  • Create a service for the specific worker

    Parameters

    • worker: EventTarget

    Returns DialogService

Properties

worker: EventTarget

Methods

  • Open a Confirmation Dialog with a single dismiss button.

    Parameters

    • title: string

      Dialog title

    • text: string

      Dialog message

    • icon: string

      Dialog icon. It can be 'info', 'warning', 'error', or other icon strings.

    • Optional confirmText: string

      Optional. Text for confirm button. Default to 'Confirm'.

    • Optional confirmIcon: string

      Optional. Icon for confirm button. Default to no icon.

    • Optional cancelText: string

      Optional. Text for cancel button. Default to 'Go Back'.

    Returns Promise<CloseDialog<never>>

  • Open a Confirmation Dialog with a single dismiss button.

    Parameters

    • title: string

      Dialog title

    • text: string

      Dialog message

    • icon: string

      Dialog icon. It can be 'info', 'warning', 'error', or other icon strings.

    • Optional confirmText: string

      Optional. Text for confirm button. Default to 'OK'.

    • Optional confirmIcon: string

      Optional. icon for confirm button. Default to no icon.

    Returns Promise<CloseDialog<never>>

  • Open a Custom Webcomponent Dialog

    Type Parameters

    • ParamType = any

    • ReturnType = ParamType

    Parameters

    • componentTag: string

      The tagname of the webcomponent to render in the dialog

    • initialData: ParamType

      The initial data to be passed to the dialog component upon opening

    • Optional options: GenericDialogOptions

    Returns Promise<CloseDialog<ReturnType>>

Generated using TypeDoc