static_background
信息
本功能仅在 PRO 版中可用。
Description
为时间线区域生成背景图像,而不是渲染实际的列和行的线条
static_background: boolean
Example
gantt.config.static_background = true;
gantt.init("gantt_here");
默认值: false
Related samples
Details
自 v6.2 版本起,该配置会渲染 PNG 背景以及通过 timeline_cell_class 模板函数附加了 CSS 类的单元格。
如果你需要回滚到 v6.1 的行为(也就是只渲染背景图像),请使用 static_background_cells 配置:
gantt.config.static_background_cells = false;
仅当启用 show_task_cells 配置(默认启用)时,才会渲染高亮单元格。
自 v6.3 起,智能渲染仅渲染时间轴可见部分中的单元格,因此该配置对渲染速度的影响小于早期版本。导出数据时,该配置还会减小发送到导出服务器的请求的大小。
Related API
Related Guides
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.