I'm currently trying to use the quickInfoTemplates to display a custom quick info for when a user clicks on an appointment. However, I'm getting errors around quickInfoTemplates not actually being a valid property, and furthermore, the the model for quickInfoTemplates doesn't seem to exist either.
Could you provide an example for how to customize the quickInfo card that pops up when clicking on an appointment?
Please check the sample and get back to us for further assistance.
DMDerrick MorinMay 18, 2020 04:25 PM
Thank you for the example. It works great on StackBlitz. I've copied the <ng-template #quickInfoTemplatesContent ...> element into my <ejs-schedule></ejs-schedule> and when I click on an event or cell in the rendered scheduler I get the following error in the console:
ERROR TypeError: this.parent.getQuickInfoTemplatesContent(...) is not a function
at QuickPopups.getPopupContent (ej2-schedule.es2015.js:5678)
at QuickPopups.eventClick (ej2-schedule.es2015.js:5605)
at Observer.notify (ej2-base.es2015.js:1953)
at ComponentBase.notify (ej2-base.es2015.js:6667)
at ComponentBase.<anonymous> (ej2-schedule.es2015.js:4631)
at ComponentBase.push../node_modules/@syncfusion/ej2-angular-base/src/component-base.js.ComponentBase.trigger (component-base.js:256)
at MonthEvent.eventClick (ej2-schedule.es2015.js:4611)
at ZoneDelegate.invokeTask (zone-evergreen.js:399)
at Object.onInvokeTask (core.js:41344)
at ZoneDelegate.invokeTask (zone-evergreen.js:398)
I've stepped into the ej2-schedule.es2015.js file and it appears that this.quickInfoTemplatesContentFn is never set properly. The templateParser() method is called with template = "#quickInforTemplatesContent" and document.querySelectorAll(template).length is zero which tells me that
<ng-template #quickInfoTemplatesContent ...> has not been rendered to the page yet.
It seems like I am having a timing issue. When is <ng-template #quickInfoTemplatesContent ...> supposed to be rendered to the DOM so that document.querySelectorAll(template) will return something?
thank you for your help,
VMVengatesh Maniraj Syncfusion Team May 19, 2020 01:51 AM
Thanks for the update.
We have tried to reproduce the reported issue in our previously updated sample but we couldn’t reproduce it. Could you please reproduce the issue in our updated sample to serve you better?