Our pure JavaScript Scheduler component

Post by maartenaziri »

The default setting is

Top bar with a date
Bottom bar with hh:mm

When a user zooms in the bottom bar is splitted every 30 minutes. Is it possible for the bottom bar to always remain hh:mm format?

Post by marcio »

Hey maartenaziri,

Thanks for reaching out.

Yes, it's possible, you need to override the default ViewPreset, please check the following documentation to have more info.

There are several snippets there for you to understand how to extend and adapt your code to have that custom format.

But if you need more clarification, please don't hesitate to contact us here.

Best regards,

Post by omnisip »

Hi, we're having a similar issue, and we're struggling on this.

When the 'viewPreset' is a string -- Bryntum out of the box 'hourAndDay' :
zoom in/out works - an event changes its size according to the zooming, after when our component is rendered the 'zoomLevel' does not change.

viewPreset is string.gif
viewPreset is string.gif (1.93 MiB) Viewed 68 times

When the 'viewPreset' is an object:
zoom in/out does not work - an event does not change its size according to the zooming, also after when our component is rendered the 'zoomLevel' is changed (it only increases).

viewPreset is object.gif
viewPreset is object.gif (1.77 MiB) Viewed 68 times

This is our config:

config_viewPreset_object.png (41.34 KiB) Viewed 68 times

What are we doing wrong?

Post by mats »

Are you able to share a small runnable test case that we can inspect locally?

Post Reply