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 accepts an object with these properties:
-
id- (required) identifies the row to update -
row- (optional) contains the new data for the row. You can find all available row parameters here -
replace- (optional) controls whether the existing data is completely replacednoteSetting
replaceto true will overwrite all old data with the new data. If not set, only the specified values will be updated. -
skipProvider- (optional) controls whether to skip sending the update request to the server
info
To work with 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:
- Added id and row parameters in v1.1
- Added replace parameter in v1.3