addSpan()
adds a rows/cols span
addSpan(spanObj: object): void;
Parameters:
spanObj: object
- an object with configuration of a span. It contains the following properties:row: string | number
- required, the id of a rowcolumn: string | number
- required, the id of a columnrowspan: number
- optional, the number of rows in a spancolspan: number
- optional, the number of columns in a spantext: string | number
- optional, the text in a spanned row/columncss: string
- optional, the name of the CSS class that will be applied to a span
Example
grid.addSpan({
row: "0",
column: "a",
rowspan: 5
});
// grid.paint();