fires before a tree branch will be opened or closed (the Timeline view, 'tree' mode only)
section | object| boolean | the configuration object of the branch to open/close. Takes the true value, if all branches will be closed/opened at once by the closeAllSections()/openAllSections() methods. |
isOpen | boolean | indicates whether the branch will be opened (true) or closed (false) |
allSections | boolean | takes the true value, if all tree branches will be closed/opened at once by the closeAllSections()/openAllSections() methods, false - if only one branch will be opened/closed. |
boolean | defines whether the default action of the event will be triggered (true) or canceled (false) |
Available only in PRO Edition
scheduler.attachEvent("onBeforeFolderToggle", function(section,isOpen,allSections){
//any custom logic here
return true;
});