跳至主要内容

delete-column

描述

当删除列时触发

用法

"delete-column": ({ 
id: string | number,
skipProvider?: boolean
}) => void;

参数

delete-column 事件的回调函数可以接收一个包含以下参数的对象:

  • id - (必需)要删除的列的 ID
  • skipProvider - (可选)启用或禁用阻止请求发送到服务器
信息

处理内部事件时,您可以使用 事件总线方法

示例

// 创建看板
const board = new kanban.Kanban("#root", {
columns,
cards
});
// 订阅 "delete-column" 事件
board.api.on("delete-column", (obj) => {
console.log(obj.id);
});