update-row
Description
Triggered when a row's data is updated
Usage
"update-row": ({
id: string | number,
row?: object,
replace?: boolean,
skipProvider?: boolean
}) => void;
Parameters
The callback for the update-row event receives an object with these parameters:
id
- (required) the identifier of the row being updatedrow
- (optional) the new data object for the row. Find the complete list of row parameters herereplace
- (optional) controls whether the data is fully replaced or partially updated
note
Setting replace
to true will completely overwrite the old data with the new one. If omitted or false, only the specified values will be updated.
skipProvider
- (optional) controls whether the request to the server is suppressed
info
To manage internal events, refer to the Event Bus methods
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// listen to the "update-row" event
board.api.on("update-row", (obj) => {
console.log(obj);
});
Change log:
- The id and row parameters were introduced in v1.1
- The replace parameter was added in v1.3