adds colspan or rowspan to the datatable
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. |
Available only in PRO Edition
grid.addSpan(1, "country", 1, 3);
The method can as well take an array of arrays with the same configuration (id, column, width, height, value, css) to define several spans at a time.
grid.addSpan([
[1, "country", 1, 3],
[4, "country", 1, 2],
[6, "country", 1, 3]
]);
Defaults: