Hi bryntum team.
Q1. I didn't create a calendar as in your demo.I use these code to init a calendar.
this.calendar = this.calendarComponent.instance;
and I set eventTooltip in the ngOnInit lifecycle . I hope to get the eventRecord in the handler event when I click the customized eventTooltip. How can i do?
Q2. I use a created event, then copy it, and select the date to create multiple events with the same content. as the pic2 . i'd like to copy this task from 2021/10/13 to 2021/10/29 . How can i do?
Thanks you reply ,Animal .
About question1 , i may not understand you .I'm sorry .
I have no idea for that.
And qustion2 ,do you have some methods for me?
If possible, please show me the code
Hi Bryntum.
I am using calendar which version is 4.2.6(trial) .
What I want to say is that in your case, you initialize a calendar through new calendar, set tooltip in the parameters passed to new calendar, and then you can directly use this.eventrecord. However, I use clandar as a web component, and then initialize the instance through
this.calendar.instance
. setting the tooltip property of the calendar component 。so, i can not get eventRecord on the eventTooltip handler .
calendar has some lifeCycle .such as beforeEventEditbeforeEventDelete .They have the eventrecord property on their handlers . so, ihope to invoke a lifecycle function similar to calendar in the event handler of eventTooltipd. I don't know if it's possible