Jquery 甘特图 插件 jQuery.Gantt
来源:互联网 发布:安徽航信网络发票 编辑:程序博客网 时间:2024/06/04 17:56
http://taitems.github.io/jQuery.Gantt/
参数 默认值 类型 说明
第一个参数是点击点对应时间的毫秒数,第二个参数对象的idonRenderfunction () { return; } 甘特图渲染完毕后执行的操作useCookiefalse 声明是是否使用cookie记录图表的状态(缩放单元、滚动条位置)
需要使用jquery.cookie.js才能使用该选项scrollToTodaytrueBoolean是否滚动到当天
Source Configuration 数据源配置格式
source: [{name: "标题",desc: "描述.",values: [ ... ]}]
Value Configuration 数据源的json数值对
values: [{to: "/Date(1328832000000)/",from: "/Date(1333411200000)/",desc: "鼠标悬停时的描述文字",label: "甘特图项目标题",customClass: "ganttRed",dataObj: foo.bar[i]}]
$(function() {"use strict";$(".gantt").gantt({source: [{name: "Sprint 0",desc: "Analysis",values: [{from: "/Date(1320192000000)/",to: "/Date(1322401600000)/",label: "Requirement Gathering",customClass: "ganttRed"}]},{name: " ",desc: "Scoping",values: [{from: "/Date(1322611200000)/",to: "/Date(1323302400000)/",label: "Scoping",customClass: "ganttRed"}]},{name: "Sprint 1",desc: "Development",values: [{from: "/Date(1323802400000)/",to: "/Date(1325685200000)/",label: "Development",customClass: "ganttGreen"}]},{name: " ",desc: "Showcasing",values: [{from: "/Date(1325685200000)/",to: "/Date(1325695200000)/",label: "Showcasing",customClass: "ganttBlue"}]},{name: "Sprint 2",desc: "Development",values: [{from: "/Date(1326785200000)/",to: "/Date(1325785200000)/",label: "Development",customClass: "ganttGreen"}]},{name: " ",desc: "Showcasing",values: [{from: "/Date(1328785200000)/",to: "/Date(1328905200000)/",label: "Showcasing",customClass: "ganttBlue"}]},{name: "Release Stage",desc: "Training",values: [{from: "/Date(1330011200000)/",to: "/Date(1336611200000)/",label: "Training",customClass: "ganttOrange"}]},{name: " ",desc: "Deployment",values: [{from: "/Date(1336611200000)/",to: "/Date(1338711200000)/",label: "Deployment",customClass: "ganttOrange"}]},{name: " ",desc: "Warranty Period",values: [{from: "/Date(1336611200000)/",to: "/Date(1349711200000)/",label: "Warranty Period",customClass: "ganttOrange"}]}],navigate: "scroll",maxScale: "hours",itemsPerPage: 10,onItemClick: function(data) {alert("Item clicked - show some details");},onAddClick: function(dt, rowId) {alert("Empty space clicked - add an item!");},onRender: function() {if (window.console && typeof console.log === "function") {console.log("chart rendered");}}});$(".gantt").popover({selector: ".bar",title: "I'm a popover",content: "And I'm the content of said popover.",trigger: "hover"});prettyPrint();});
1 0
- Jquery 甘特图 插件 jQuery.Gantt
- jQuery甘特图插件jQuery.Gantt
- jQuery Gantt Chart jQuery图表插件,可以实现甘特图
- JS甘特图 JQuery.Gantt
- JQuery.Gantt(甘特图) 开发指南
- JQuery.Gantt(甘特图) 开发指南
- JQuery.Gantt(甘特图) 开发指南
- JQuery.Gantt(甘特图) 开发指南
- JQuery Gantt Chart
- 对jquery-gantt的应用
- JQuery.Gantt(甘特图) 开发指南 , 附下载资源
- dojo甘特图插件扩展gantt chart
- MeritMS+jQuery.Gantt价值管理系统增加项目进度展示
- jquery甘特图插件
- [ jQuery ] jquery 自定义插件!
- 【jQuery】jQuery常用插件
- 【jQuery】jQuery UI插件
- jQuery-FullScreen jquery插件
- Downloadmanager 状态整理
- 10046事件和tkprof命令
- Android Fragment 真正的完全解析
- IAR 6.3中intrinsics.h与core_cm3.h 中的兼容错误解决方法
- 基于Jquery+Ajax+Json+高效分页
- Jquery 甘特图 插件 jQuery.Gantt
- hashmap遍历
- 《Linux设备驱动程序》——USB驱动程序
- OPENSSL中RSA私钥文件(PEM格式)解析
- Objective-C Runtime 运行时之三:方法与消息
- 关于安装flash时提示“已经阻止此发布者在您的计算机上运行软件”的解决办法
- 黑马程序员——核心语法
- Android四种点击事件
- 宏的使用