允许通过拖动右侧边框来调整 grid 的大小
此属性已被废弃。
Available only in PRO Edition
gantt.config.columns = [
{ name:"text", tree:true, width:"*", resize:true },
{ name:"start_date", align: "center"},
{ name:"duration", align: "center", width:70 },
{ name:"add", width:44 }
];
gantt.config.grid_resize = true; gantt.init("gantt_here");
此功能仅在 PRO 版本中可用。
此属性现已废弃。请改用 gantt.config.layout 并根据需要配置 grid 和 resizer 对象。更多详情请参见 这里。
gantt.config.layout = {
css: "gantt_container",
rows:[
{
cols: [
{view: "grid", id: "grid", scrollX:"scrollHor", scrollY:"scrollVer"},
{resizer: true, width: 1},
{view: "timeline", id: "timeline", scrollX:"scrollHor", scrollY:"scrollVer"},
{view: "scrollbar", scroll: "y", id:"scrollVer"}
]
},
{view: "scrollbar", scroll: "x", id:"scrollHor", height:20}
]
};
gantt.init("gantt_here");
自版本 5.0 起标记为废弃。
Back to top