全屏扩展
在 全屏模式 文章中阅读关于全屏扩展的详细信息。
名为 fullscreen 的对象具备以下 API:
方法
- expand (): void - 将甘特图扩展至全屏模式
gantt.ext.fullscreen.expand();
- collapse (): void - 将甘特图从全屏模式折叠回普通模式
gantt.ext.fullscreen.collapse();
- toggle (): void - 当甘特图已展开至全屏时调用 collapse() 方法,否则调用 expand() 方法
gantt.ext.fullscreen.toggle();
- getFullscreenElement (): HTMLElement - 返回将通过 expand() 方法展开到全屏的 DOM 元素
gantt.ext.fullscreen.getFullscreenElement();
默认情况下,getFullscreenElement() 方法返回 Gantt 图的 HTML 容器。
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.