Class DialogManager

base class for event dispatching using d3 event mechanism, thus .suffix is supported for multiple registrations

Hierarchy (view full)

Constructors

Properties

livePreviews: Partial<ILivePreviewOptions>
node: HTMLElement
onDialogBackgroundClick: "cancel" | "confirm"
EVENT_DIALOG_CLOSED: "dialogClosed" = 'dialogClosed'
EVENT_DIALOG_OPENED: "dialogOpened" = 'dialogOpened'

Accessors

Methods

  • forwards one or more events from a given dispatcher to the current one i.e. when one of the given events is fired in 'from' it will be forwarded to all my listeners

    Parameters

    • from: IEventHandler

      the event dispatcher to forward from

    • Rest ...types: string[]

      the event types to forward

    Returns void

  • Parameters

    • type: "dialogOpened"
    • listener: ((dialog) => void)
        • (dialog): void
        • emitted a dialog is opened

          Parameters

          Returns void

          As Member Of

          DialogManager

          Group

          Events

    Returns this

  • Parameters

    • type: "dialogClosed"
    • listener: ((dialog, action) => void)
        • (dialog, action): void
        • emitted a dialog is closed

          Parameters

          • dialog: ADialog

            the closed dialog

          • action: "cancel" | "confirm"

            the action how the dialog was closed

          Returns void

          As Member Of

          DialogManager

          Group

          Events

    Returns this

  • Parameters

    Returns this

  • Parameters

    • mask: {
          height: number;
          left: number;
          top: number;
          width: number;
      }
      • height: number
      • left: number
      • top: number
      • width: number

    Returns void