Class TaggleRenderer

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

Hierarchy (view full)

Constructors

Properties

EVENT_DIALOG_CLOSED: "dialogClosed" = EngineRenderer.EVENT_DIALOG_CLOSED
EVENT_DIALOG_OPENED: "dialogOpened" = EngineRenderer.EVENT_DIALOG_OPENED
EVENT_HIGHLIGHT_CHANGED: "highlightChanged" = EngineRenderer.EVENT_HIGHLIGHT_CHANGED

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: "highlightChanged"
    • listener: ((dataIndex) => void)
        • (dataIndex): void
        • emitted when the highlight changes

          Parameters

          • dataIndex: number

            the highlighted data index or -1 for none

          Returns void

          As Member Of

          TaggleRenderer

          Group

          Events

    Returns this

  • Parameters

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

          Parameters

          Returns void

          As Member Of

          TaggleRenderer

          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

          TaggleRenderer

          Group

          Events

    Returns this

  • Parameters

    Returns this

  • Parameters

    • dataIndex: number
    • scrollIntoView: boolean

    Returns boolean