The cards.add() method adds a new card to cards.list and updates the Kanban UI.
Declaration
DayPilot.Kanban.cards.add(card);Parameters
card(DayPilot.Card) - card to be added
Notes
You can create a DayPilot.Card instance from an object that specifies the card properties before calling cards.add(). See cards.list for the supported card data fields.
Example
const card = new DayPilot.Card({
id: 1,
column: "drafts",
swimlane: "23",
name: "Task 1",
text: "Description of the task"
});
dp.cards.add(card);See Also
Card Creating [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot