Skip to main content

updateCard()

Description

Updates the card data by its ID

Usage

updateCard({
id: string | number,
card?: object
}): void;

Parameters

  • id - (required) the ID of the card to be updated
  • card - (optional) the new data object of the card
info

The full list of the card parameters can be found here

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// update card data with the 1 ID
board.updateCard({
id: 1,
card: {
label: "New Label",
row: "feature",
column: "inprogress",
/*other parameters*/
}
});

Change log: The id and card parameters were added in v1.1