Premium support for our pure JavaScript UI components


Post by gorakh.nath »

Hi Team ,
How can we show more segment between two time frame inside calendar? please refer screenshot for more info.

Attachments
Screenshot 2021-09-21 at 12.52.44 PM.png
Screenshot 2021-09-21 at 12.52.44 PM.png (44.05 KiB) Viewed 452 times

Post by mats »

Please study https://bryntum.com/docs/scheduler/#Scheduler/preset/PresetManager and https://bryntum.com/docs/scheduler/#Scheduler/preset/ViewPresetHeaderRow carefully. Do you want an extra header row with 20 min increments? Please show a screenshot of your desired time axis.


Post by gorakh.nath »

I added the screenshot, I edited the view and added three more lines in between 12AM to 1 AM, three lines mean it is representing 20 min difference, so like that I want to show for each interval.
How can we achieve this?

Attachments
Screenshot 2021-09-21 at 3.14.56 PM.png
Screenshot 2021-09-21 at 3.14.56 PM.png (43.26 KiB) Viewed 448 times

Post by mats »

Adding this viewPreset definition does the trick as you want?

viewPreset : {
        base    : 'hourAndDay',
        headers : [
            {
                unit       : 'day',
                dateFormat : 'DD MMM'
            },
            {
                unit       : 'hour',
                dateFormat : 'H A'
            },
            {
                unit       : 'minute',
                dateFormat : 'm',
                increment  : 20
            }
        ]
    }
Attachments
Screenshot 2021-09-21 at 14.20.06.png
Screenshot 2021-09-21 at 14.20.06.png (118.32 KiB) Viewed 443 times

Post by gorakh.nath »

@mats thanks this was the expectation, its working now.


Post Reply