Our powerful JS Calendar component


Post by janiquekamgx »

Hello Bryntum team,

Given:
showAllDayHeader:false,
dayStartShift: 6,
dayStartTime: 2,
dayEndTime:1,

And event startTime: 05:50AM / endTime: 06:50AM
Is it normal that the event goes throughout the whole day and ends up in the next column at the desired endTime? (Please check the picture below)

Thanks

Attachments
2024_09_12_16_40_54_Bryntum_Calendar_6.0.5_Live_Demo.jpg
2024_09_12_16_40_54_Bryntum_Calendar_6.0.5_Live_Demo.jpg (240.97 KiB) Viewed 249 times

Post by Animal »

That's a very strange set of conditions you've given it.

So dayStartShift : 6 means the "day" runs from 06:00 to the following 06:00 (Hence those headers spanning two dates)

But the dayStartTime is 2, and the dayEnd time is before that at 1.

I can't really get my head round the requirements there.


Post by janiquekamgx »

Okay, let me explain this way:

Given:
showAllDayHeader:false,
dayStartShift: 2,
dayStartTime: 2,
dayEndTime:1,

There is an event that overlaps but the start time falls in the period that I don't want to know what's there. So the event starts at 01:50 previous day and ends at 02:50 the current day, but I want to see everything that starts from 02:00 to 01:00 next day, even though the "day" runs from 02:00 to the following 02:00. We have situations where events are overlapping days, but the users want to see day selections. In such cases, the event is unnecessarily shown through the whole day.
Does this now make sense?

Attachments
2024_09_13_09_35_59_Bryntum_Calendar_6.0.5_Live_Demo.jpg
2024_09_13_09_35_59_Bryntum_Calendar_6.0.5_Live_Demo.jpg (238.53 KiB) Viewed 214 times

Post by Animal »

Trying to get my head round what this means...

I have this example: https://codepen.io/Animal-Nige/pen/KKjYoLO?editors=0010

The event runs from 01:50 which is in the previous virtual "day", so you can see its last 10 minutes at the bottom of the "5-6" column, until 02:50 so you can see its final 50 minutes at the top of the "6-7" column.

Is this correct? What more is required?

Screenshot 2024-09-13 at 11.09.30.png
Screenshot 2024-09-13 at 11.09.30.png (342.63 KiB) Viewed 190 times

Post by janiquekamgx »

Now if you add:
dayStartTime: 2
dayEndTime: 1

You will see the event through the whole previous day (see screenshot).
The usecase is that we have clients that want to export reports about specific part of the day, so even though the days starts at 2, they want to see what's planned in some period of time within that day.
For this purpose we have the daySratTime and dayEndTime settings so that the users can select the period they want to see.

Attachments
2024_09_13_09_35_59_Bryntum_Calendar_6.0.5_Live_Demo.jpg
2024_09_13_09_35_59_Bryntum_Calendar_6.0.5_Live_Demo.jpg (204.8 KiB) Viewed 107 times

Post by marcio »

Hey janiquekamgx,

Thanks for clarifying. I was able to reproduce the configuration that you described and created a ticket to investigate the provided scenario.

The ticket is here https://github.com/bryntum/support/issues/10069.

Best regards,
Márcio


Post Reply