Conversation
docs/grid/usage.md
Outdated
|
|
||
| **Related sample**: [Grid. Sorting by multiple columns (multisorting)](https://snippet.dhtmlx.com/4ej0i3qi) | ||
|
|
||
| It is also possible to apply multi-sorting to [the grouped data](grid/usage.md#grouping-data). Check the example below: |
There was a problem hiding this comment.
@mafanya23 тут пример в принципе про включение мульти сортировки при инициализации компонента, факт группировки тут малозначительный. Можно написать, что вот пример, как включить такую сортировку. Без упоминания групп.
There was a problem hiding this comment.
Обновила раздел про мульти-сортировку
docs/whatsnew.md
Outdated
|
|
||
| #### Common features | ||
|
|
||
| - [Multi-user (live update) backend](integration/suite_and_backend.md#multi-user-backend-for-suite-widgets) for Suite widgets |
There was a problem hiding this comment.
@mafanya23 наверное в раздел с примерами. По сути, чтобы это заработало на клиента ничего не добавляли. Просто примеры
There was a problem hiding this comment.
Перенесла в примеры
docs/whatsnew.md
Outdated
|
|
||
| ### Fixes | ||
|
|
||
| - DataCollection. The `sort()` method called without arguments doesn't reset the applied sorting |
| @short: returns an array of objects with the current parameters of sorting applied to the data | ||
|
|
||
| :::note | ||
| The method allows getting the result of sorting data by multiple columns. |
There was a problem hiding this comment.
@mafanya23 работает всегда, в том числе у тех, у кого нет мультисортировки через UI.
Ограничений через API у сортировки нет.
Заметка не нужна.
There was a problem hiding this comment.
Убрала заметку для data/treecollection getSortingStates()
| <tbody> | ||
| <tr> | ||
| <td><b>by</b></td> | ||
| <td>(<i>string | number</i>) the id of a data field (a column of Grid) to sort by</td> |
There was a problem hiding this comment.
@mafanya23 в описании метода TreeCollection лучше не допускать таких пометок, касательно иного компонента.
Коллекция может применятся в Toolbar или Tree.
(a column of Grid)
Лучше сноской выделить ниже, что для Grid это column id. Либо вовсе убрать фразу. Необходимо пройтись по методам/событиям. Исправить такие места.
There was a problem hiding this comment.
Подправила описания для treecollection getSortingStates(), sort(), filter()
|
|
||
| ## Examples of using DHTMLX Suite widgets with Node.js | ||
|
|
||
| Let's have an overview of the examples. |
There was a problem hiding this comment.
Here you can find 12 interactive...
There was a problem hiding this comment.
Пока немного переделала описание
| ## Usage | ||
|
|
||
| ~~~jsx | ||
| interface ISortingState { |
There was a problem hiding this comment.
interface ISortingState {
by: string | number,
dir: "asc" | "desc",
as?: (a) => any,
rule?: (a, b) => number,
smartSorting?: boolean
}| ## Usage | ||
|
|
||
| ~~~jsx | ||
| interface ISortingState { |
There was a problem hiding this comment.
@mafanya23 тот же комментарий, что и к TreeGridCollection
| <tbody> | ||
| <tr> | ||
| <td><b>by</b></td> | ||
| <td>(<i>string | number</i>) the id of a data field (a column of Grid) to sort by</td> |
There was a problem hiding this comment.
@mafanya23 не нужна тут эта фраза
(a column of Grid)
| @params: | ||
| - `rule: object` - an object with parameters for sorting. The object has the following attributes: | ||
| - `by: string | number` - the id of a data field (a column of Grid in the TreeGrid mode) | ||
| - `by: string | number` - the id of a data field |
There was a problem hiding this comment.
@mafanya23 ошибки в записи, необходимо проверить в других местах
component.data.sort(
{
by: "price",
dir: "asc",
as: value => (value || "")
},
{ smartSorting: true }
);
// cancels the applied sorting rules
component.data.sort();
No description provided.