DashboardAttributeFilterComponentProvider
Home > @gooddata/sdk-ui-dashboard > IDashboardCustomComponentProps > DashboardAttributeFilterComponentProvider
IDashboardCustomComponentProps.DashboardAttributeFilterComponentProvider property
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Specify custom component to use for rendering all attribute filters or a factory function to customize the component per different attribute filter.
Signature:
DashboardAttributeFilterComponentProvider?: OptionalAttributeFilterComponentProvider;
Remarks
If you want to hide some or all filters, you can use the HiddenDashboardAttributeFilter implementation.
- If not provided, the default implementation DefaultDashboardAttributeFilter will be used. - If factory function is provided and it returns undefined, then the default implementation DefaultDashboardAttributeFilter. This is useful if you want to customize just one particular filter and keep all other filters the same.
Example
Here is how to override the component for all filters:
ComponentFactory: () => MyCustomComponent