rowKey
描述
可选。指定卡片如何分配到某一行。
信息
要将卡片组织到行(泳道)中,您需要定义一个 自定义键,该键对应每张卡片数据中行的 ID。然后,在组件配置中将 rowKey 属性设置为该 自定义键。
用法
rowKey?: string;
示例
const cards = [
{
label: "Backlog task",
row_custom_key: "feature"
},
{
label: "In progress task",
row_custom_key: "done"
}
];
new kanban.Kanban("#root", {
columns,
cards,
rows,
rowKey: "row_custom_key",
// 其他参数
});
相关示例: Kanban. Swimlanes