static_background

为时间线部分创建背景图像,而不是直接绘制列和行的线条

boolean static_background;

Available only in PRO Edition

Example

gantt.config.static_background = true;
 
gantt.init("gantt_here");


Default value:

false

Related samples

Details

此功能仅在PRO版本中可用。

从v6.2版本开始,该设置会生成一个PNG背景图像,同时还会应用通过timeline_cell_class模板函数分配的CSS类样式到单元格。

如果想恢复到v6.1版本的行为(仅渲染背景图像),可以使用static_background_cells中的配置:

gantt.config.static_background_cells = false;
See also
Back to top