updateRow()
Description
Updates the row data by its ID
Usage
updateRow({
id: string | number,
row?: object,
replace?: boolean
}): void;
Parameters
-
id
- (required) the ID of the row to be updated -
row
- (optional) the new data object of the row. The full list of the row parameters can be found here -
replace
- (optional) enables/disables fully data replacingnoteIf you set the
replace
parameter to true, the old data will be fully replaced by the new ones. Otherwise, the method will update only the values you passed.
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards,
rows
});
// update row data with the "feature" ID
board.updateRow({
id: "feature",
row: {
label: "Updated row",
collapsed: true
},
replace: true
});
Change log:
- The id and row parameters were added in v1.1
- The replace parameter was added in v1.3