Skip to content

Commit a1ff62e

Browse files
authored
Merge pull request #35 from DHTMLX/next-v9.0.1
[add] what's new for v9.0.1, update treecollection and grid in treegr…
2 parents b1d61f5 + 6271bcb commit a1ff62e

21 files changed

+96
-49
lines changed

docs/common_features/custom_scroll.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ From v7.2, DHTMLX includes neat custom scrollbars with a thin grey semi-transpar
1212

1313
<iframe src="https://snippet.dhtmlx.com/gjsbvzdk?mode=result" frameborder="0" class="snippet_iframe" width="100%" height="700"></iframe>
1414

15-
The custom scroll is available for the following DHTMLX components: List, DataView, Grid, TreeGrid, Layout cell, Toolbar, Ribbon, Sidebar, Window.
15+
The custom scroll is available for the following DHTMLX components: List, DataView, Grid, Grid in the TreeGrid mode, Layout cell, Toolbar, Ribbon, Sidebar, Window.
1616

1717
To add the feature into your application, you need to set the **enable** property of the **dhx.scrollViewConfig** global variable to *true* before initialization of the widgets:
1818

docs/data_collection/api/datacollection_sort_method.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ description: You can explore the sort method of DataCollection in the documentat
1111
@signature: {'sort(rule?: object, config?: object): void;'}
1212

1313
@params:
14-
- `rule: object` - an object with parameters for sorting. The parameters are:
14+
- `rule: object` - an object with parameters for sorting. The object has the following attributes:
1515
- `by: string | number` - the id of a data field (a column of Grid)
16-
- `dir: string` - the direction of sorting "asc" or "desc"
16+
- `dir: string` - the direction of sorting: "asc" or "desc"
1717
- `as: function` - a function that specifies the type to sort data as
1818
- `rule: function` - optional, a sorting rule; the function must have two parameters and return a number (-1,0,1)
1919
- `config: object` - defines the parameter of sorting. It may contain one property:
@@ -31,25 +31,27 @@ grid.data.sort({
3131
}
3232
});
3333

34-
// cancels applied sorting rules
34+
// cancels the applied sorting rules
3535
grid.data.sort();
3636

3737
@descr:
3838

3939
**Related sample**: [Data. Sorting](https://snippet.dhtmlx.com/lz351u47)
4040

41-
{{note Calling the method without parameters will discard all applied sorting rules.}}
41+
:::note
42+
Calling the method without parameters will discard all applied sorting rules.
43+
:::
4244

4345
### Custom sorting
4446

45-
To set a custom function for sorting you need to specify the **rule** attribute in a passed object. For example:
47+
To set a custom function for sorting, you need to specify the `rule` attribute in a passed object. For example:
4648

47-
~~~js
49+
~~~jsx
4850
grid.data.sort({
4951
rule: (a, b) => a.id > b.id ? 1 : (a.id < b.id ? -1 : 0)
5052
});
5153
~~~
5254

5355
@changelog:
5456

55-
The **config** parameter is added in v7.0.
57+
The `config` parameter is added in v7.0.

docs/grid/api/treegrid_mode/grid_aftercollapse_event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: You can explore the afterCollapse event of Grid in the documentatio
66

77
# afterCollapse
88

9-
@short: fires after collapsing a treegrid
9+
@short: fires after collapsing Grid in the TreeGrid mode
1010

1111
:::note
1212
The event works only for Grid with the `type: "tree"` configuration option

docs/grid/api/treegrid_mode/grid_afterexpand_event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: You can explore the afterExpand event of Grid in the documentation
66

77
# afterExpand
88

9-
@short: fires after expanding a treegrid
9+
@short: fires after expanding Grid in the TreeGrid mode
1010

1111
:::note
1212
The event works only for Grid with the `type: "tree"` configuration option

docs/grid/api/treegrid_mode/grid_beforecollapse_event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: You can explore the beforeCollapse event of Grid in the documentati
66

77
# beforeCollapse
88

9-
@short: fires before collapsing a treegrid
9+
@short: fires before collapsing Grid in the TreeGrid mode
1010

1111
:::note
1212
The event works only for Grid with the `type: "tree"` configuration option

docs/grid/api/treegrid_mode/grid_beforeexpand_event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: You can explore the beforeExpand event of Grid in the documentation
66

77
# beforeExpand
88

9-
@short: fires before expanding a treegrid
9+
@short: fires before expanding Grid in the TreeGrid mode
1010

1111
:::note
1212
The event works only for Grid with the `type: "tree"` configuration option

docs/grid/api/treegrid_mode/grid_collapsed_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: You can explore the collapsed config of Grid in the documentation o
66

77
# collapsed
88

9-
@short: Optional. Defines that a treegrid is initialized in the collapsed state
9+
@short: Optional. Defines that Grid in the TreeGrid mode is initialized in the collapsed state
1010

1111
:::note
1212
The property works only for Grid with the `type: "tree"` configuration option

docs/grid/api/treegrid_mode/grid_expand_event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: You can explore the expand event of Grid in the documentation of th
66

77
# expand
88

9-
@short: fires before collapsing a treegrid
9+
@short: fires before collapsing Grid in the TreeGrid mode
1010

1111
:::note
1212
The event works only for Grid with the `type: "tree"` configuration option

docs/guides/datacollection_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: You can learn how to work with DataCollection in the documentation
99
The DHTMLX library includes two invisible components (in other words, helpers) that serve to store data:
1010

1111
- [DataCollection](data_collection.md/) - stores a non-hierarchical set of data (data for Chart, Combobox, DataView, Grid, List)
12-
- [TreeCollection](tree_collection.md/) - stores a hierarchical set of data (data for Menu, Ribbon, Sidebar, Toolbar, Tree, TreeGrid)
12+
- [TreeCollection](tree_collection.md/) - stores a hierarchical set of data (data for Menu, Ribbon, Sidebar, Toolbar, Tree, Grid in the TreeGrid mode)
1313

1414
API methods and events of DataCollection and TreeCollection let you work with data items, namely to load, process, and edit the items.
1515

docs/helpers/custom_scroll.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ description: You can have an overview of Custom Scroll in the documentation of t
1212

1313
The feature can be activated on the page for all widgets at once via the **enable** property of the **dhx.scrollViewConfig** global variable before initialization of the widgets:
1414

15-
```js
15+
~~~js
1616
dhx.scrollViewConfig.enable = true; // false by default
1717

1818
// initializing widgets
19-
```
19+
~~~
2020

2121
**Related sample:** [Custom scroll. Scroll view in List, Dataview](https://snippet.dhtmlx.com/gjsbvzdk)
2222

23-
{{note As a result of the above logic, DHTMLX custom scrollbars will be applied to the following widgets: List, DataView, Grid, TreeGrid, Layout cell, Toolbar, Ribbon, Sidebar, Window.}}
23+
:::note
24+
As a result of the above logic, DHTMLX custom scrollbars will be applied to the following widgets: List, DataView, Grid, Grid in the TreeGrid mode, Layout cell, Toolbar, Ribbon, Sidebar, Window.
25+
:::
2426

2527
## Custom scroll settings
2628

@@ -77,7 +79,9 @@ list.scrollView.enable();
7779
list.scrollView.disable();
7880
~~~
7981

80-
{{note Try out the functionality [in our Snippet Tool](https://snippet.dhtmlx.com/gjsbvzdk).}}
82+
:::note
83+
Try out the functionality [in our Snippet Tool](https://snippet.dhtmlx.com/gjsbvzdk).
84+
:::
8185

8286
To force recalculation and redrawing of the custom scroll, apply the **update()** method:
8387

0 commit comments

Comments
 (0)