group

groups data by the specified data property

void group(object config, [id target] );
config
objectan object with grouping parameters target
idthe ID of the branch for multiple grouping

Example

myview.group({
    by:"company", // 'company' is the name of a data property
    map:{
        sales:["sales","sum"]
    }   
});

Related samples

Details

The method is called for each data item.

The config object has several properties:

To group data initially (just after data has been loaded) you may use the scheme parameter, to be accurate, its $group key.

webix.ui({
    view:"chart",
    ...
    scheme:{
        $group:{
            by:"company", // 'company' is the name of a data property
            map:{
                sales:["sales","sum"],
                state:["grouped","string"]
            }   
        }
    }
});
See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix popular javascript framework and page of tree grid ui product.