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 you want to access
Returns
This method returns the data object associated with the card identified by the given ID
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// retrieve the data object for the card with ID 1
board.getCard(1);