I am adding the div to the event by adding it in areas in onBeforeEventRender as below
onBeforeEventRender: (args) => {
args.e.areas = [
{
right: 50,
bottom: 200,
width: 1200,
top: 100,
HeightSpec: 120,
onClick: (argsclick) => {
this.confirmDeleteIconClick = true;
this.confirmDelete.show(argsclick.source);
},
onDrop: (argsDrop) => { alert('ondrop'); this.drop(argsDrop) },
onDragover: (argsDragOver) => {alert('ondragover'); this.allowDrop(argsDragOver) },
visibility: args.e.visible,
html: '<div class = "fa fa-trash-o iconFont" style="height:100%; width: 100%; background-color:red;"> Memebership 2 </div>',
}
]
}
But only OnClick event works and other events are not getting detected (Even we are not able to see other events in Event listeners tabs of that div),
Is there any restrictions from DayPilot side for adding other events? Or what i can do so that other events are also getting attached to this div element?
Note: We are using it in Angular4
Can anyone please help me on it, Also please let me know is there any other way in daypilot for drag and drop on the event?