moveRow()
描述
将某一行移动到看板中的新位置。
用法
moveRow({
id: string | number,
before: string | number
}): void;
参数
id
- (必需)需要移动的行的 IDbefore
- (必需)将移动行放置在其前面的行的 ID
示例
// 创建 Kanban
const board = new kanban.Kanban("#root", {
columns,
cards,
row
});
// 将 "task" 泳道移动,并放置在 "feature" 泳道之前
board.moveRow({
id: "task",
before: "feature"
});
更新日志: 此方法在 v1.1 版本中添加