GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

removeEventHandler()

Home > @gooddata/sdk-ui-dashboard > IDashboardEventHandling > removeEventHandler

IDashboardEventHandling.removeEventHandler() method

Removes a handler for particular event type. This is reverse operation to IDashboardEventHandling.addEventHandler().

Signature:

removeEventHandler<TEvents extends DashboardEvents | ICustomDashboardEvent>(eventType: DashboardEventType | string | "*", callback: DashboardEventHandlerFn<TEvents>): IDashboardEventHandling;

Parameters

ParameterTypeDescription
eventTypeDashboardEventType | string | "*"type of the event to stop handling; this can be either built-event event type (see DashboardEventType), a custom event type or '*' to register handler for all events
callbackDashboardEventHandlerFn<TEvents>originally registered callback function

Returns:

IDashboardEventHandling

self, for call chaining sakes

Remarks

In order for this method to remove a handler, the arguments must be the same when you added the handler.

E.g. it is not possible to add a handler for all events using '*' and then subtract just one particular event from handling.

  • IDashboardEventHandling.removeEventHandler() method
  • Parameters
  • Remarks
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use