Hi,
this.scheduler = new bryntum.scheduler.Scheduler({
multiEventSelect : true,
flex : 40,
....
....
eventMenu : {
items : {
sendEmail : {
text : 'Send email',
icon : 'b-fa b-fa-mail-bulk',
weight : 200,
onItem : ({ eventRecord}) => this.openEmailBox(eventRecord,)
},
deleteEvent : false,
copyEvent : false,
cutEvent : false
}
},
=> this.openEmailBox(eventRecord) work fine
after modify my code like this :
eventMenu : {
// Process items before menu is shown
processItems({eventRecord, items})
{
items.copyEvent = false;
items.deleteEvent = false;
items.cutEvent = false;
if (eventRecord.statut === 'PLANIFIEE') {
items.sendEmail = {
text : 'Send email',
icon : 'b-fa b-fa-mail-bulk',
onItem({eventRecord, resourceRecord}) {
console.log('onitem');
this.openEmailBox(eventRecord);
}
};
}
},
..
}
the call this.openEmailBox(eventRecord) doesn't work, nothing happen
BR