addRow()
Description
Adds a new row into Kanban
Usage
addRow({
id?: string | number,
row?: object,
before?: string | number
}): void;
Parameters
id
- (optional) the ID of the new rowrow
- (optional) the data object of the new rowbefore
- (optional) the ID of the row, before which the new row will be placed
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
},
before: "row_2"
});
Change log: The id, row and before parameters were added in v1.1