Hello everyone,
I have used the bryntum calendar with the attributes as follow:
{
date : new Date(),
modes : {
// Let's not show the default views
day : null,
week : null,
month : null,
year : null,
agenda : null,
weekResources : {
type : 'resource',
title : 'Semaine',
resourceWidth : '30em',
hideNonWorkingDays : true,
view : {
nonWorkingDays : null,
dayStartTime : 8,
dayEndTime : 20,
tools : {
close : {
cls : 'b-fa b-fa-times',
tooltip : 'Filtrer cette ressource',
handler() {
const
calendar = this.up('calendar'),
resourceFilter = calendar.widgetMap.resourceFilter,
resource = this.resource;
resourceFilter.selected.remove(resource);
}
}
},
eventRenderer : ({ eventRecord, renderData }) => {
return E2dPlanning_CalendarLibelle(eventRecord);
}
},
meta : resource => resource.title
}, monthResources : {
type : 'resource',
title : 'Mois',
resourceWidth : '30em',
hideNonWorkingDays : false,
view : {
type : 'monthview',
nonWorkingDays : null,
dayStartTime : 8,
dayEndTime : 20,
eventRenderer : ({ eventRecord, renderData }) => {
return E2dPlanning_CalendarLibelle(eventRecord);
}
},
meta : resource => resource.title
},
dayResources : {
type : 'resource',
title : 'Jour',
resourceWidth : '30em',
hideNonWorkingDays : false,
view : {
nonWorkingTime : true,
type : 'dayview',
nonWorkingDays : null,
dayStartTime : 8,
dayEndTime : 20,
eventRenderer : ({ eventRecord, renderData }) => {
return E2dPlanning_CalendarLibelle(eventRecord);
}
},
meta : resource => resource.title
}
}
}
When I test the calendar, the date is January 5th. So in the calendar, it should show the week of January 5th in the 'weekResources. However, it displays the week of December 25th to December 31st.
In "dayResources " and "monthResources ", the date is displayed correctly.
Can someone help me?
Thanks a lot