Open NegativeDearc opened 1 month ago
Thanks for the report @NegativeDearc, This is a bug. We'll investigate the issue.
If you need any other help related to our products, you can reach out to us through Bryntum Forum
@NegativeDearc A quick workaround is:
const scheduler = new SchedulerPro({
...
columns : [
{
type : 'resourceCalendar',
text : 'Shift',
width : 180,
editor : {
type : 'calendarfield',
hideTrigger : false,
// Customize config makes resourceCalendar column can't show calendarEditor
calendarEditor : { // class calendarEditor
activeDate : new Date(),
defaultWorkingDays : {
0 : true,
1 : true,
2 : true,
3 : true,
4 : true,
5 : true,
6 : true
},
defaultWorkingDayAvailability : [
{ startDate : '06:00', endDate : '10:00' },
{ startDate : '11:00', endDate : '14:00' }
],
listeners : {
catchAll : (event) => {
console.log(event);
}
}
}
}
}
...
@NegativeDearc A quick workaround is:
const scheduler = new SchedulerPro({ ... columns : [ { type : 'resourceCalendar', text : 'Shift', width : 180, editor : { type : 'calendarfield', hideTrigger : false, // Customize config makes resourceCalendar column can't show calendarEditor calendarEditor : { // class calendarEditor activeDate : new Date(), defaultWorkingDays : { 0 : true, 1 : true, 2 : true, 3 : true, 4 : true, 5 : true, 6 : true }, defaultWorkingDayAvailability : [ { startDate : '06:00', endDate : '10:00' }, { startDate : '11:00', endDate : '14:00' } ], listeners : { catchAll : (event) => { console.log(event); } } } } } ...
Thank you for the reply. @arcady-zherdev
Some config works like defaultWorkingDayAvailability
and defaultWorkingDays
but some others not working like parentField=false
or removeButton=false
@NegativeDearc Ok. I've made a separate ticket for that: https://github.com/bryntum/support/issues/9830
I'm testing from https://bryntum.com/products/schedulerpro/examples/resourcehistogram/
I'm edited the code as below
calendar editor can't show as expected but state changed as showed.