useAttributeFilterController
Home > @gooddata/sdk-ui-filters > useAttributeFilterController
useAttributeFilterController variable
UseAttributeFilterController hook is responsible for initialization of AttributeFilterHandler IMultiSelectAttributeFilterHandler Core API for Attribute Filter components
Signature:
useAttributeFilterController: (props: IUseAttributeFilterControllerProps) => AttributeFilterController
Remarks
You can access AttributeFilter state and callbacks (AttributeFilterController)
This is the best option if you need to implement fully custom UI for the attribute filter. This option requires a bit more coding, but you have a full control over the UI. It has identical convenient API as AttributeFilter component - same input props and same output props that are available in the internal context of the AttributeFilter component. It works out of the box with other UI.SDK things - BackendProvider, WorkspaceProvider and visualization definition placeholders.