此模式预先假定使用鼠标指针将焦点设置在单元格和允许导航单元格的热键上:
2、键盘导航模式
- 箭头键 – 导航 格单元
- Shift+右箭头键 – 向右移动一个任务,即做一个嵌套任务,而上面的任务变成一个项目
- Shift+左箭头键 – 将项目变成一个简单的任务
- Shift+向上箭头键 – 折叠带有任务的分支
- Shift+向下箭头键 – 用任务展开分支
使用gantt.plugins方法启用keyboard_navigation插件。
gantt.plugins({ keyboard_navigation: true});
启用键盘导航和按单元格导航:
gantt.config.keyboard_navigation = true;gantt.config.keyboard_navigation_cells = true;
gantt.config.placeholder_task = true;
如果需要,您还可以添加任务类型的自动检测:
gantt.config.auto_types = true;
var mapping = { init: function(inlineEditors){ // inlineEditor module is initialized // add global listeners for starting/ending editing }, onShow: function(inlineEditors, node){ // the editor is displayed }, onHide: function(inlineEditors, node){ // the editor is hidden // clean the onShow changes if needed }};gantt.ext.inlineEditors.setMapping(mapping);
dhtmlxGantt是用于跨浏览器和跨平台应用程序的功能齐全的Gantt图表,可满足项目管理控件应用程序的所有需求,是最完善的甘特图图表库。了解更多DhtmlxGantt相关内容和资讯,欢迎在线咨询或者私信我获取正版试用版及 价。
甘特图控件交流群:764148812 欢迎进群交流讨论
更多正版甘特图软件下载、购买、授权咨询,请点这里!
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!