Detecting views set by Cookie Extension

Hello,

I am using the cookies extension to store the last selected views.

Unfortunately my custom buttons don’t automatically select the state of the view loaded. How can I access the views being set by the cookie extension so that I can select the correct “active” state on the buttons?

Thanks,

Hi,
if you need to sync UI elements with the state of scheduler, try using onViewChange event:
docs.dhtmlx.com/scheduler/api__s … event.html

scheduler.attachEvent("onViewChange", function (new_mode , new_date){ //any custom logic here // new_mode - view that has been activated }); scheduler.init("scheduler_here");