Skip to main content

selectCard()

Description

Highlights a card using the given ID.

Usage

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

Parameters

  • id - (required) the ID of the card to be selected
  • groupMode - (optional) turns on or off the ability to select multiple cards at once (false by default)
info

When groupMode is set to true, calling selectCard() won’t clear the selection of other cards

Example

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