跳至主要内容

history

描述

可选。启用或禁用变更历史的管理

信息

通过使用 history 属性,您可以启用或禁用 Kanban 的历史管理。如果将其设置为 false,则无法通过 API 和工具栏控件管理历史。

提示

您还可以使用方法和事件中的 $meta 参数跳过 Kanban 历史中的某些操作!

用法

history?: boolean; 

默认配置

history: true

示例

new kanban.Kanban("#root", {
columns,
cards,
history: false, // 禁用历史管理
// 其他参数
});

更新日志: 此属性在 v1.3 版本中新增

相关文档: undo()redo()