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

withTag()

Home > @gooddata/sdk-ui-dashboard > IDashboardInsightCustomizer > withTag

IDashboardInsightCustomizer.withTag() method

A convenience method that will register a specific React component to use for rendering any insight that is tagged with the provided tag.

Signature:

withTag(tag: string, component: CustomDashboardInsightComponent): IDashboardInsightCustomizer;

Parameters

ParameterTypeDescription
tagstringtag to look for on the insight, this function will do nothing if this argument is an empty string
componentCustomDashboardInsightComponentcomponent to use if the tag is found

Returns:

IDashboardInsightCustomizer

self, for call chaining sakes

Remarks

If plugins register multiple providers for the same tag, then the provider will be picked using 'last-win' strategy.

  • IDashboardInsightCustomizer.withTag() 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