You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/grid/api/headerfilter/setvalue_method.md
+28-6Lines changed: 28 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,19 +10,41 @@ description: You can explore the setValue method of the header filter of Grid in
10
10
11
11
@signature: {'setValue(value: string | string[] | Date | Date[]): void;'}
12
12
13
-
@params:
14
-
-`value: string | string[] | Date | Date[]` - the value to be set for the filter
13
+
@descr:
14
+
#### Usage
15
15
16
-
:::info
17
-
- An array of string values can be specified only for [`comboFilter`](/grid/configuration/#customizing-headerfooter-filters) in the `multiselection:true` mode.
16
+
- for inputFilter, selectFilter, comboFilter
18
17
19
-
- For [`dateFilter`](/grid/configuration/#customizing-headerfooter-filters), the value must be passed strictly as a *Date* object (for a single selection) or an array of *Date[]* objects (for the `range` mode). *String* values are not supported by the `setValue()` method for this filter type.
20
-
:::
18
+
~~~jsx
19
+
setValue(value: string):void;
20
+
~~~
21
+
22
+
- for comboFilter
23
+
24
+
~~~jsx
25
+
setValue(value: string | string[]):void;
26
+
~~~
27
+
28
+
- for dateFilter
29
+
30
+
~~~jsx
31
+
setValue(value:Date|Date[]):void;
32
+
~~~
33
+
34
+
@params:
35
+
-`value: string | string[] | Date | Date[]` - the value to be set for the filter
0 commit comments