re: http://docs.webix.com/api__ui.unitlist_sort_config.html
sorting on a single field is easy (by ‘#name#’), but can you give me an example of sorting on multiple fields? I tried by "#group#.#name#’ but that doesn’t work
re: http://docs.webix.com/api__ui.unitlist_sort_config.html
sorting on a single field is easy (by ‘#name#’), but can you give me an example of sorting on multiple fields? I tried by "#group#.#name#’ but that doesn’t work
You need to implement the custom sorting function in the corresponding scheme key.
About the grouping: the uniteBy
method gives a “header” to each item and then unites them by these headers. Therefore, it is possible to customize the grouping as follows:
So easy! Have to explore the scheme more. Thank you
By the way, sort
property of ui.unitlist has evolved to the $sort
key for all data items and no longer available. Thank you for drawing attention to the outdated API page, it will be removed asap.