Skip to main content

onBeforeCollapse

Description

Fires when a user clicks on the expand icon to change the scheduler's size from 'full screen' to original.

onBeforeCollapse: () => void

Returns

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

Example

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

Details

note

The event requires the expand extension to be enabled.

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.