Skip to main content

onAfterFolderToggle

info

This functionality is available in the PRO edition only.

Description

Fires after a tree branch was opened or closed (the Timeline view, 'tree' mode only)

onAfterFolderToggle: (section: object | boolean, isOpen: boolean, allSections: boolean) => void

Parameters

  • section - (required) object | boolean - the configuration object of the opened/closed branch.
    Takes the true value, if all branches were closed/opened at once by the closeAllSections()/openAllSections() methods.
  • isOpen - (required) boolean - indicates whether the branch was opened (true) or closed (false)
  • allSections - (required) boolean - takes the true value, if all tree branches were closed/opened at once by the closeAllSections()/openAllSections() methods,

Example

scheduler.attachEvent("onAfterFolderToggle", function(section, isOpen, allSections){
//any custom logic here
});
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.