grid_width
Description
设置网格的宽度
grid_width: number
Example
gantt.config.grid_width = 400;
gantt.init("gantt_here");
Default value: 360
Details
Grid 列的宽度取决于两个属性:列的 width 与网格的宽度之和。如果列宽之和不等于网格宽度,Gantt 将修改其中一个参数。
- 当通过 gantt.init() 初始化 Gantt 时,列的 width 是优先的。
- 当通过 gantt.render() 渲染 Gantt 时,grid_width 是优先的。
注释
示例:列宽调整
- 当通过 gantt.init() 初始化 Gantt,且列宽未指定或设为 '*' 时,grid_width 是优先的。
注释
示例:调整列宽
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.