Skip to content

Commit

Permalink
[no ci] Update docs/StackedFilters.md
Browse files Browse the repository at this point in the history
  • Loading branch information
slax57 authored Oct 31, 2024
1 parent b8c2804 commit f7b3c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/StackedFilters.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ An **operator** is an object that has a `label`, a `value`, a `defaultValue` and

- The `label` is a string, and can be a translation key.
- The `value` is used as a suffix to the `source` and passed to the list filters.
- The `defaultValue` is used as the default `value` of the `source`.
- The `defaultValue` is used as the default filter value.
- The `type` ensures that when selecting an operator with a different type than the previous one, React-admin resets the filter value. Its value should be either `single` for filters that accepts a single value (for instance a `string`) or `multiple` for filters that accepts multiple values (for instance an `Array` of `string`). Should you need to differentiate a custom input from those two types, you may provide any type you want to the `type` option (for instance, `map`).

For instance, if the user adds the `views` filter with the `eq` operator and a value of `0`, the `dataProvider.getList()` will receive the following `filter` parameter:
Expand Down

0 comments on commit f7b3c47

Please sign in to comment.