DayPilot.Kanban.cards.add

Adds a new card to cards.list and updates the control UI.

Declaration

DayPilot.Kanban.cards.add(card);

Parameters

  • card - DayPilot.Card object

You can create a DayPilot.Card object from the object with card properties (see also cards.list):

var card = new DayPilot.Card({
  id: 1,
  column: "drafts",
  swimlane: "23",
  name: "Task 1",
  text: "Description of the task"
});

dp.cards.add(card);