@equinor/fusion-react-filter
v1.8.4
Published
component for Filtering data
Downloads
998
Readme
@equinor/fusion-react-filter
Adds filter functionality through the FilterProvider. Also comes with various predefined filters and panels for building out a filter.
Consult the Storybook for more detailed examples and documentation.
Installation
npm install @equinor/fusion-react-filter
Example Usage
<FilterProvider initialData={data} initialFilters={initialFilters}>
<MyFilterComponent />
<MyApp />
</FilterProvider>
Properties/Attributes
Name | Type | Description
-------------------- | --------- | -------
initialData
| Generic*
| Dataset for filtering. *Recommended type is TData[] or Record<string,TData>
initialFilters
| Record<string,any>
| Filter selection added at initiation