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
Parameter | Type | Description |
---|---|---|
tag | string | tag to look for on the insight, this function will do nothing if this argument is an empty string |
component | CustomDashboardInsightComponent | component to use if the tag is found |
Returns:
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.