Skip to main content

unselectCard()

Description

Unselects card(s) by its ID

Usage

unselectCard({ id: string | number }): void;
info

To unselect all cards, call the unselectCard() method without parameters

Parameters

  • id - (required) the ID of the card to be unselected

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// unselect the card with the 1 ID
board.unselectCard({ id: 1 });