menuItems.Add(new
{
text = "Cell details",
iconCss = "e-icons today",
id = "details"
});
function onContextMenuBeforeOpen1(args) {
var newEventElement = document.querySelector('.e-new-event');
if (newEventElement) {
ej.base.remove(newEventElement);
ej.base.removeClass([document.querySelector('.e-selected-cell')], 'e-selected-cell');
}
var targetElement = args.event.target;
if (ej.base.closest(targetElement, 'contextmenu1')) {
return;
}
selectedTarget = ej.base.closest(targetElement, '.e-appointment,.e-work-cells,' +
'.e-vertical-view .e-date-header-wrap .e-all-day-cells,.e-vertical-view .e-date-header-wrap .e-header-cells');
--------------
--------------
}
case 'details':
var cellDatails = scheduleObj.getCellDetails(scheduleObj.getSelectedElements().indexOf(selectedTarget) !== -1 ? scheduleObj.getSelectedElements() : selectedTarget); |