selectCard()
Description
Highlights a card based on the given ID.
Usage
selectCard({
id: string | number,
groupMode?: boolean
}): void;
Parameters
id
- (required) the ID of the card to be selectedgroupMode
- (optional) toggles the ability to select multiple cards at once (defaults to false)
info
When groupMode is set to true, the selectCard() method keeps the current selection intact while adding the new card to the selection.
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// select the card with the 1 ID
board.selectCard({
id: 1,
groupMode: true
});