Ok so:
-parent.html:
<bryntum-calendar
#calendar
[date]="currentDate"
[modes]="calendarConfig.modes"
[events]="events"
</bryntum-calendar>
-parent.ts:
this.calendarConfig = {
modes: {
list: false,
week: {
animateTimeShift: false,
eventLayout: {
stretch: true,
},
autoCreate: false,
eventRenderer({ eventRecord, renderData }) {
return `<custom-event-element eventname="${eventRecord.name}"></custom-event-element>`;
},
},
},
};
and in CustomEventElement.ts to add the event listener ? How i pass the calendar instance, because if i provide it as an @Input(), in the CustomEventElement the instance have value "[object, object]"?