DayPilot.Kanban.cards.find

The cards.find() method returns the Kanban card with the specified ID.

Declaration

DayPilot.Kanban.cards.find(id);

Parameters

  • id (string | number) - ID of the card to find

Return Value

Returns the matching DayPilot.Card object, or null if no card with the specified ID is found.

Example

const card = kanban.cards.find(1);
card.data.name = "Task 1";
kanban.cards.update(card);

See Also

DayPilot.Kanban.cards.update()

DayPilot.Kanban Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript