跳至主要内容

getColumnCards()

描述

获取一个数组,存储特定列中所有卡片的数据对象

用法

getColumnCards(id: string | number): array;

参数

  • id - (必填)目标列的 ID

返回值

该方法返回一个数组,存储特定列中所有卡片的数据对象

示例

// 创建看板
const board = new kanban.Kanban("#root", {
columns,
cards
});
// 获取 ID 为 1 的列中所有卡片的数据对象
const cards_data = board.getColumnCards(1);
console.log(cards_data);

更新日志:该方法自 v1.7 版本起新增