Skip to main content

selectCard()

Description

Selects a card by the specified ID

Usage

selectCard({
id: string | number,
groupMode?: boolean
}): void;

Parameters

  • id - (required) the ID of the selected card
  • groupMode - (optional) multiselecting (false by default)
info

If you set the groupMode parameter to true, the selectCard() method will not reset selecting of the other elements

Example

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