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/data_collection/api/datacollection_filter_method.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,12 @@ description: You can explore the filter method of DataCollection in the document
14
14
-`rule: function | object` - the filtering criteria
15
15
- If set as a *function*, filtering will be applied by the rule specified in the function. The function takes an object of a data item as a parameter and returns *true/false*
16
16
- If set as an *object*, the parameter has the following attributes:
17
-
-`by: string | number` - mandatory, the id of a data field (the column of Grid)
17
+
-`by: string | number` - mandatory, the id of a data field
18
18
-`match: string` - mandatory, a pattern to match
19
19
-`compare: function` - optional, a function for extended filtering that takes three parameters:
20
-
-`value` - the value to compare (e.g. a column in a row for Grid)
20
+
-`value` - the value to compare
21
21
-`match` - a pattern to match
22
-
-`item` - a data item the values of which should be compared (e.g. a row)
22
+
-`item` - a data item the values of which should be compared
23
23
-`config: object` - optional, defines the parameters of filtering. It may contain the following properties:
24
24
-`id: string` - optional, the id of the filter
25
25
-`add: boolean` - optional, defines whether each next filtering will be applied to the already filtered data (<i>true</i>), or to the initial data (<i>false</i>, default)
Copy file name to clipboardExpand all lines: docs/data_collection/api/datacollection_getfilters_method.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ description: You can explore the getFilters method of DataCollection in the docu
15
15
-`permanent: boolean` - optional, <i>false</i> by default. Allows getting the list of permanent filters
16
16
17
17
@returns:
18
-
-`filters: object` - an object with the applied filters, where the key is the id of a filter and the value is an object with the [**rule** and **config** properties](data_collection/api/datacollection_filter_method.md)
18
+
-`filters: object` - an object with the applied filters, where the key is the id of a filter and the value is an object with the [`rule` and `config` properties](data_collection/api/datacollection_filter_method.md)
description: You can explore the getSortingStates method of DataCollection in the documentation of the DHTMLX JavaScript UI library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Suite.
5
+
---
6
+
7
+
# getSortingStates()
8
+
9
+
@short: returns an array of objects with the current parameters of sorting applied to the data
10
+
11
+
## Usage
12
+
13
+
~~~jsx
14
+
interface ISortingState {
15
+
by: string | number,
16
+
dir:"asc"|"desc",
17
+
as?: (a) => any,
18
+
rule?: (a, b) => number,
19
+
smartSorting?: boolean
20
+
}
21
+
22
+
getSortingStates(): ISortingState[];
23
+
~~~
24
+
25
+
@returns:
26
+
An array of objects with the current parameters of sorting applied to the data.
0 commit comments