Hi, I want to create copy/paste event on calendar, as I found out there is no feature on calendar currently, so I want to use eventMenu to do this. I added copy option on eventMenu, but his handler is not called, also after copy, I just want to right click on empty cell and paste it there, basically it copies everything, just change date and paste there. I couldn't find anything for right clicking any cell, it just opens browser's default menu. can you help me with this?
Support Forum
This will be supported shortly (already implemented), so our recommendation would be to wait for the 5.4 release.
If you want to continue implementing it on your own, you can look at https://bryntum.com/products/calendar/docs/api/Calendar/feature/ScheduleMenu or you can listen to 'schedulecontextmenu' to show a menu or use the
What version are you using? This works for me:
scheduleMenu : {
items : {
// Knocks out the predefined addEvent item
addEvent : null,
// Add our own custom item
disableDate : {
icon : 'b-fa b-fa-calendar-times',
text : 'Mark date unavailable',
// Will look up ownership chain and find the Calendar
onItem : 'up.showTimeInfo'
}
}
}
},
showTimeInfo({ date }) {
Toast.show(String(date));
},