move-column
描述
当移动列时触发
用法
"move-column": ({
id: string | number,
before?: string | number,
skipProvider?: boolean
}) => void;
参数
move-column 事件的回调函数可以接收一个包含以下参数的对象:
id- (必需)要移动的列的 IDbefore- (可选)指定移动列将被放置在其前面的列的 ID。如果未指定before参数,列将被放置在看板的末尾skipProvider- (可选)启用或禁用防止请求发送到服务器
信息
要处理内部事件,您可以使用事件总线方法
示例
// 创建看板
const board = new kanban.Kanban("#root", {
columns,
cards
});
// 订阅 "move-column" 事件
board.api.on("move-column", (obj) => {
console.log(obj);
});
更新日志: 此事件在 v1.1 中添加