withCustomToolbarProvider()
Home > @gooddata/sdk-ui-dashboard > IVisualizationSwitcherCustomizer > withCustomToolbarProvider
IVisualizationSwitcherCustomizer.withCustomToolbarProvider() method
Register a provider for React components to render VisualizationSwitcherToolbar.
Signature:
withCustomToolbarProvider(provider: OptionalVisualizationSwitcherToolbarComponentProvider): IVisualizationSwitcherCustomizer;
Parameters
Parameter | Type | Description |
---|---|---|
provider | OptionalVisualizationSwitcherToolbarComponentProvider | provider to register |
Returns:
IVisualizationSwitcherCustomizer
self, for call chaining sakes
Remarks
A provider takes the VisualizationSwitcherToolbar as input and is expected to return a React component that should be used to render that VisualizationSwitcherToolbar.
If the provider returns undefined
then:
- if there are other providers registered, they will be called to see if they can provide a component to render the VisualizationSwitcherToolbar - if there are no other providers registered, the default, built-in component will be used.
You may register multiple providers. They will be evaluated in the order you register them.