getCard()
Description
Retrieves the data object of a card using its specified ID
Usage
getCard(id: string | number): object;
Parameters
id- (required) the ID of the card to retrieve
Returns
This method returns the data object associated with the card that matches the given ID
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// retrieve the data object of the card with ID 1
const card_data = board.getCard(1);
console.log(card_data);