Our powerful JS Calendar component


Post by niranjan »

Can the time span show on the calendar configured to show duration of 15 minutes or 30 mins instead of the default 1 hour spans?

Attachments
Screen Shot 2023-03-21 at 4.43.32 PM.png
Screen Shot 2023-03-21 at 4.43.32 PM.png (19.66 KiB) Viewed 153 times

Post by Animal »

It shows what there is room to show.

If you configure the hourHeight larger (Or use CTRL+mousewheel) to zoom in which makes the hourHeight larger, it shows more ticks:

Screenshot 2023-03-21 at 14.19.59.png
Screenshot 2023-03-21 at 14.19.59.png (13.74 KiB) Viewed 141 times

Post by niranjan »

Ho do I set the hourHeight value?
Do I pass it as prop to <BryntumCalendar /> wrapper?
It did not work though.


Post by Animal »

it's a config of the DayView class, not of the overall Calendar class

https://bryntum.com/products/calendar/docs/api/Calendar/widget/DayView#config-hourHeight

So either configure it into the day or week mode configs directly.

Or set it in modeDefaults of the Calendar so it gets configured into the modes (Ones which don't have it will just ignore it): https://bryntum.com/products/calendar/docs/api/Calendar/view/Calendar#config-modeDefaults


Post by niranjan »

It worked.
Thanks.


Post Reply