addRow()
Description
Adds a new row into Kanban
Usage
addRow({
id?: string | number,
row?: object
}): void;
Parameters
id
- (optional) the new row IDrow
- (optional) the data object of the new row
info
The full list of the row parameters can be found here
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards,
rows
});
// add new row
board.addRow({
id: "extra_row",
row: {
label: "Extra row",
collapsed: false
}
});
Change log: The id and row parameters were added in v1.1