Skip to main content

getCard()

Description

Gets a data object of the card by the specified ID

Usage

getCard(id: string | number): object;

Parameters

  • id - (required) the ID of the target card

Returns

The method returns the data object of the card with the specified ID

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// get the data object of the card with the 1 ID
board.getCard(1);