Our powerful JS Calendar component


Post by nvondru »

Dear Bryntum Team
I noticed that setting the 'disableWeekends' on a DatePicker doesn't strictly disable weekends only. It works off of the "nonWorkingDays" value instead, which can be any number of weekdays.

2024-03-28_19-23-23.png
2024-03-28_19-23-23.png (85.55 KiB) Viewed 390 times

I propose to change the name of this property to 'disableNonWorkingDays', or if this is an unneccessary breaking change, simply update the description in the docs.


Post by marcio »

Hey nvondru,

Thanks for reaching out and for your suggestion. I created a ticket to discuss/implement that here https://github.com/bryntum/support/issues/8914.

Please watch the ticket for live updates.

Best regards,
Márcio


Post by Animal »

Or add a disableNonWorkingDays config option. We can do that and maintain backward compatibility.

The two concepts may be separate.


Post by Animal »

You can disable dates as you see fit by configuring disabledDates in the date picker as a function which accepts a Date and returns true if you want it to be disabled in the UI.

https://www.bryntum.com/products/calendar/docs/api/Core/widget/CalendarPanel#config-disabledDates


Post Reply