I would like to access the HTML of a p-fullCalendar event in order to modify it. However, when I call console.log
on a single p-fullCalendar event, the component that contains the information about the HTML, children etc. is not associated with any type. All other components have a concrete type:
calendar.component.ts:478 {
el: a.fc-daygrid-event.fc-daygrid-block-event.fc-h-event.fc-event,
event: EventApi,
jsEvent: MouseEvent,
view: ViewApi
}
So, how can I access the HTML of the el
component of the whole event?
For example, these two attempts fail - an error is thrown.
handleMouseEnter(hoveredEvent) {
hoveredEvent.el.find('.div.fc-event-main')
.append("<div class='desc'>" + "bla" + "</div>");
}
handleMouseEnter(hoveredEvent) {
hoveredEvent.el.html();
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…