跳到主要内容

static_background

信息

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

Description

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

static_background: boolean

Example

gantt.config.static_background = true;

gantt.init("gantt_here");

Default value: false

Details

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

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

gantt.config.static_background_cells = false;
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.