addSpan

adds a rows/cols span

void addSpan(object span);

Parameters

spanobjectan object with configuration of a span

Example

grid.addSpan({ 
    row: "0", 
    column: "a", 
    rowspan: 5 
});
// grid.paint();

Details

The span object contains the following properties:

  • row - (string|number) mandatory, the id of a row
  • column - (string|number) mandatory, the id of a column
  • rowspan - (number) optional, the number of rows in a span
  • colspan - (number) optional, the number of columns in a span
  • text - (string|number) optional, the text in a spanned row/column
  • css - (string) optional, the name of the CSS class that will be applied to a span
See also
Back to top