EventsManager interface

warning: when using a selection feature the of the callback will be invoked with the selected dimension field always as a string

Hierarchy

  • IEventsManager

Index

Properties

Methods

Properties

Optional OnError

OnError: function

Global error handler

Type declaration

    • Parameters

      Returns void

Methods

subscribe

  • subscribe(eventType: TEventsType, callback: function): void
  • Subscribes a callback to a specific TrueChart event

    Parameters

    • eventType: TEventsType

      Type of event

    • callback: function

      Callback function to be triggered when the event occurs

        • (...params: any[]): void
        • Parameters

          • Rest ...params: any[]

          Returns void

    Returns void

trigger

  • Triggers an internal trueChart action

    Parameters

    • action: TTriggerAction

      Type of action to be triggered

    • Rest ...parameter: any[]

      Parameter(s) depending on the action

    Returns void