Skip to main content

getColumnCards()

Description

Retrieves an array containing data objects for all cards within a specified column

Usage

getColumnCards(id: string | number): array;

Parameters

  • id - (required) the ID of the column you want to access

Returns

This method returns an array filled with data objects representing all the cards in the specified column

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// retrieve data objects for all cards in the column with ID 1
const cards_data = board.getColumnCards(1);
console.log(cards_data);

Change log: The method was added in v1.7