Skip to main content

onBeforeExpand

Description

Fires before gantt is expanded to full screen

onBeforeExpand: () => boolean;

Returns

  • result - (boolean) - defines whether the default action of the event will be triggered (true) or canceled (false)

Example

gantt.attachEvent("onBeforeExpand",function(){
// any custom logic here
return true;
});

Details

The event is blockable. Returning false will cancel further processing.

note

This event is defined in the fullscreen extension, so you need to activate the fullscreen plugin using the gantt.plugins method. Read the details in the Full Screen Mode article.

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.