dhtmlxGantt 提供了多种扩展功能,用于增强基础功能。
要启用某个扩展,只需通过 gantt.plugins 方法激活相应插件。
此扩展允许通过拖放来创建和选择任务。
gantt.plugins({
click_drag: true
});
文章: 创建/选择任务与拖拽(DnD)
API: click_drag
Related sample: Create new tasks by Drag and Drop
此扩展仅在 PRO 版本中可用
该功能会根据任务之间的依赖关系自动进行任务排程。
gantt.plugins({
auto_scheduling: true
});
文章: 自动调度
API: auto_scheduling
Related sample: Auto Scheduling extension
此扩展仅在 PRO 版本中可用
显示必须按时完成以避免项目整体延期的任务序列,同时展示项目的最短工期。
gantt.plugins({
critical_path: true
});
文章: 关键路径
API: highlight_critical_path
允许通过鼠标拖动来滚动时间轴视图。
gantt.plugins({
drag_timeline: true
});
API: drag_timeline
此扩展仅在 PRO 版本中可用。
允许在甘特图上添加额外的图层以放置自定义内容。
gantt.plugins({
overlay: true
});
文章: 时间线区域中的自定义元素
Related sample: Gantt chart with overlay and zoom (S-Curve)
启用在线导出服务。
gantt.plugins({
export_api: true
});
文章: 导出和导入数据
以全屏模式显示甘特图。
gantt.plugins({
fullscreen: true
});
文章: 全屏模式
此扩展仅在 PRO 版本中可用
支持按任意任务属性对任务进行分组。
gantt.plugins({
grouping: true
});
Related sample: Tasks grouping
支持在甘特图中通过键盘进行导航。
gantt.plugins({
keyboard_navigation: true
});
文章: 无障碍访问, 键盘导航
API: keyboard_navigation,keyboard_navigation_cells
支持在甘特图中同时选择多个任务。
gantt.plugins({
multiselect: true
});
文章: 多任务选择
API: multiselect
Related sample: Multiselection and Indent/Outdent tasks
弹出显示任务详情。
gantt.plugins({
quick_info: true
});
文章: 'Quick Info' 扩展的模板(触控支持),
快速信息(触控支持)
Related sample: QuickInfo extension
为用户提供补充信息,而不会干扰界面显示。
gantt.plugins({
tooltip: true
});
文章: Gantt 元素的工具提示
为所做更改提供撤销和重做功能。
gantt.plugins({
undo: true
});
Related sample: Undo/Redo changes in Gantt
高亮显示特定日期或日期范围。
gantt.plugins({
marker: true
});
文章: 添加垂直标记
API: addMarker,show_markers
Related sample: Today and Status lines in Gantt (vertical markers)
Back to top