Skip to content

Commit f7b3c47

Browse files
authored
[no ci] Update docs/StackedFilters.md
1 parent b8c2804 commit f7b3c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/StackedFilters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ An **operator** is an object that has a `label`, a `value`, a `defaultValue` and
117117

118118
- The `label` is a string, and can be a translation key.
119119
- The `value` is used as a suffix to the `source` and passed to the list filters.
120-
- The `defaultValue` is used as the default `value` of the `source`.
120+
- The `defaultValue` is used as the default filter value.
121121
- 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`).
122122

123123
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:

0 commit comments

Comments
 (0)