跳到主要内容

plugins

Description

激活指定的扩展

plugins: (ext?: GanttPlugins) => GanttPlugins

Parameters

  • ext - (可选) GanttPlugins - 一个包含需要激活的扩展名称的对象

Returns

  • activatedPlugins - (GanttPlugins) - 一个已激活扩展的对象

Example

gantt.plugins({
quick_info: true,
keyboard_navigation: true,
undo: true
});

Change log

  • 在 v8.0 中,export_api 插件已被加入到插件列表中。若在早期版本中需要启用导出服务,需要在页面中引入 https://export.dhtmlx.com/gantt/api.js 文件。请参阅 迁移 文档。
  • 于 v7.0 新增
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.