Premium support for our pure JavaScript UI components


Post by marasoft@netrom.ro »

Hello,

Is it possible to save the applied zoom into a cookie or anywhere in order to apply it again when getting back to the scheduler at some point?

  1. How to listen to the zoom event in order to get the selected value of the zoom?
  2. How to assign that value that we've previously stored to the scheduler again in order to apply the previously selected zoom?

Best regards,


Post by mats »

Yes, this is handled by our State functionality https://bryntum.com/docs/scheduler/api/Scheduler/view/mixin/SchedulerState

You can query the state anytime using

scheduler.state
  1. Listen to https://bryntum.com/docs/scheduler/api/Scheduler/view/mixin/TimelineViewPresets#event-presetChange

  2. Just set the state object to the version you stored.


Post Reply