Hi Bryntum team,
I have this waring in console about features.
I saw it's a problem about the features inside the config.
features: {
eventMenu: {
disabled: true
},
scheduleMenu: {
disabled: true
},
eventTooltip: {
bodyCls: 'tooltip-body',
template: data => `
<div class="flex flex-col space-y-1.5">
<div class="flex justify-between">
<span class="font-bold capitalize">${data.eventRecord.data.customer}</span>
<span>${totalTimeSer} min</span>
</div>
${services.map(service => `
<div class="flex justify-between gap-x-4 leading-none">
<span class="font-light w-full">${service.name}</span>
<span class="font-semibold whitespace-nowrap w-full text-left">
${new Date(service.startDate).toLocaleTimeString('it-IT', optionTime)} - ${new Date(service.endDate).toLocaleTimeString('it-IT', optionTime)}
</span>
</div>
`
).join('')}
</div>
`
},
scheduleTooltip: {
generateTipContent({ date }) {
return `
<span class="capitalize">${new Date(date).toLocaleTimeString('it-IT', optionDate)}</span>
`
},
}
}
Could I ask you how can I refactor the code to avoid the waring?