addRow()
Description
Inserts a new row into the Kanban board
Usage
addRow({
id?: string | number,
row?: object,
before?: string | number
}): void;
Parameters
id- (optional) specifies the ID for the new rowrow- (optional) provides the data object representing the new rowbefore- (optional) indicates the ID of the row before which the new row will be inserted
info
You can find the complete list of row parameters 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 introduced in v1.1