Documentation

spans

array of span configurations for the datatable

array spans;

Available only in PRO Edition

Example

webix.ui({
    view:"datatable", 
    data:{
       data:grid data,
       spans:[
            [1, "country", 1, 3],
            [4, "country", 1, 2]
       ]
    }
});

See also

Details

The parameter is used within the component's data that is presenTed as an object with two properties:

  • data or url - component data, inline of serverside (file);
  • spans - an array of span configurations, each of which includes:
    • id (number, string, object) - id of the row that starts colspan/rowspan;
    • column (string) - id of the column that starts colspan/rowspan;
    • width (number) - how many columns should the span include;
    • height (number) - how many rows should the span include;
    • value (string) - value that the span area should display;
    • css (string) - css class that should be applied to the span area.
Back to top