hour_size_px for custom template

Hello,

what I want to do:

  • Keep the standard week view as it is
  • Create an additional custom view I call “zoom” which is actually a week view but with
    hour_size_px enlarged.

I tried to follow this example (just named the custom view “zoom” rather than “workweek”):
docs.dhtmlx.com/scheduler/custom … tepexample

Anyway I do not know how to define hour_size_px for a template.
scheduler.config.hour_size_px = 84;
is not an option because I want to keep the standard view as it is but
scheduler.templates.zoom_hour_size_px = 84;
does not work.
Any idea?

Thank you very much.

Best Regards,
Benedikt.

Hi,
you can change hour_size_px setting dinamically, i.e. set ‘zoom’ when user switches to your custom viewscheduler.attachEvent("onBeforeViewChange", function(old_mode,old_date,mode,date){ if(mode == "custom_week") scheduler.config.hour_size_px = 88; else scheduler.config.hour_size_px = 44; return true; });
docs.dhtmlx.com/scheduler/api__s … event.html

Ok, thanks, yes that works too.

Best Regards,
Benedikt.