跳到主要内容

render

Description

渲染整个甘特图

render: () => void

Example

gantt.config.scales = [
{unit: "month", step: 1, format: "%F, %Y"},
{unit: "day", step: 1, format: "%j, %D"}
];
gantt.init("gantt_here");

gantt.config.scales = [
{unit: "day", step: 1, format: "%j, %D"}
];
gantt.render();

Details

您可以使用 batchUpdate 方法一次性更新多個任務/連接,實現單次重新渲染,而不是多次更新並多次重新渲染。

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.