How to show Active Areas in Angular4
9 years ago.
I am using DayPilot Pro Angular4 Calendar (and Month Calendar) component and I am trying to enable the delete functionality. I am binding to the BeforeRender event like so:
this.calendar.control.onBeforeEventRender = (args) => this.eventRender(args);
and I am handling it in the following function:
eventRender(event) {
event.e.areas = [{'action':'JavaScript','js':'(function(e) { dp.events.remove(e); })','bottom':9,'w':17,'v':'Hover','css':'event_action_delete','top':3,'right':2}];
}
However, the delete icon does not appear on the event in the calendar. What is the right way to enable active areas in the Angular4 component?
DayPilot