Class DialogManager

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

Hierarchy (View Summary)

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

    • ...types: string[]

      the event types to forward

    Returns void

  • Parameters

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

          Parameters

          Returns void

          DialogManager

    Returns this

  • Parameters

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

          Parameters

          • dialog: ADialog

            the closed dialog

          • action: "cancel" | "confirm"

            the action how the dialog was closed

          Returns void

          DialogManager

    Returns this

  • Parameters

    Returns this

  • Parameters

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

    Returns void