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",
// other parameters
});
相关示例: Kanban. Swimlanes