Register a provider for React components to render insights.
withCustomProvider(provider: OptionalKpiComponentProvider): IDashboardKpiCustomizer;
|provider||OptionalKpiComponentProvider||provider to register|
self, for call chaining sakes
A provider takes the insight and widget that it is part of as input and is expected to return a React component that should be used to render that insight.
If the provider returns
- if there are other providers registered, they will be called to see if they can provide a component to render the insight - 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.