@bigbinary/neeto-filters-frontend 2.11.8 → 2.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/dist/index.cjs.js +3924 -1005
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +3961 -1042
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -148,10 +148,23 @@ Then the node will be `address.line_1,line_2`. In such cases we need to pass thi
|
|
|
148
148
|
5. **keyword**: To specify the props related to searching.
|
|
149
149
|
6. **onSelectorsChange**: To specify the callback function that is triggered whenever a selector value is changed. This function will get the updated selectors as argument.
|
|
150
150
|
7. **childrenKeys** The list of keys which has to be cleared from url during clear filters operation.
|
|
151
|
+
8. **entity**: The entity associated with the filters.
|
|
151
152
|
|
|
152
153
|
All these props must be same as that passed to the `Filters` component.
|
|
154
|
+
The option to save filters as segments will be enabled only when the entity prop is passed to the component.
|
|
153
155
|
|
|
154
|
-
### 3. `
|
|
156
|
+
### 3. `Segments` component
|
|
157
|
+
|
|
158
|
+
#### Props
|
|
159
|
+
|
|
160
|
+
1. **columns**: The list of columns/fields that needs to be represented in the filters pane.
|
|
161
|
+
2. **entity**: The entity associated with the segments.
|
|
162
|
+
3. **setIsPaneOpen**: To trigger the isOpen state of the filters pane.
|
|
163
|
+
|
|
164
|
+
The "columns" prop must be same as that passed to the `Filters` component.
|
|
165
|
+
To set up the neeto-filters-engine with support for Segments, please follow the instructions provided in the installation [documentation](https://github.com/bigbinary/neeto-filters-engine#installation).
|
|
166
|
+
|
|
167
|
+
### 3. `buildFiltersFromURL` function
|
|
155
168
|
|
|
156
169
|
- This function takes a list as argument.
|
|
157
170
|
- This list should contains all the filter columns/fields and the value passed to `keyword` prop of `Filters` and `Bar`.
|