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;
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.