Fullscreen Extension

Read details about the Fullscreen extension in the Full Screen Mode article.
The fullscreen object possesses the following API:

Methods

  • expand (): void - expands gantt to the full screen mode
gantt.ext.fullscreen.expand();
  • collapse (): void - collapses gantt from the fullscreen mode to the normal mode
gantt.ext.fullscreen.collapse();
  • toggle (): void - calls the collapse() method if gantt is expanded to full screen, and the expand() method otherwise
gantt.ext.fullscreen.toggle();
  • getFullscreenElement (): HTMLElement - returns a DOM element that will be expanded to full screen by the expand() method.
gantt.ext.fullscreen.getFullscreenElement();

By default the getFullscreenElement() method returns an HTML container of the Gantt chart.

Back to top