Current filter:
                                You should refresh the page.
                                  • Previously, the targetedAppointmentData parameter, which represents a recurrent appointment instance, was missing in appointmentTemplate. This parameter was also unavailable in appointmentTooltipTemplate in Angular, Vue, and React because the data model, which was passed to the template, should be a single object. So, only the appointmentData parameter was passed as a data model in v19.1 and older versions:

                                    appointmentTemplate parameters:

                                    itemData: Object
                                    itemIndex: Number
                                    itemElement: Element (jQuery or HTML)

                                    appointmentTooltipTemplate parameters:

                                    appointmentData: Object
                                    contentElement: Element (jQuery or HTML)
                                    targetedAppointmentData: Object
                                    itemIndex: Number

                                    Since v19.2, both of these templates have the same parameters. targetedAppointmentData is coupled with appointmentData and placed in the model parameter:

                                    model: Object • appointmentData: Object
                                    targetedAppointmentData: Object

                                    itemIndex: Number
                                    itemElement: Element (jQuery or HTML)

                                    After migrating to v19.2, update your code as follows:

                                    1. Substitute function parameters (only in jQuery, ASP.NET Core, and ASP.NET MVC):
                                    from:
                                    [JavaScript]
                                    appointmentTooltipTemplate: function (appointmentData, contentElement, targetedAppointmentData, itemIndex) { // ... }, appointmentTemplate: function (itemData, itemIndex, itemElement) { // ... }
                                    to:
                                    [JavaScript]
                                    appointmentTooltipTemplate: function (model, itemIndex, itemElement) { // ... }, appointmentTemplate: function (model, itemIndex, itemElement) { // ... }

                                    2. Inside the templates, use model.appointmentData and model.targetedAppointmentData instead of appointmentData and targetedAppointmentData.

                                    3. Use itemElement instead of contentElement in appointmentTooltipTemplate.

                                0 Solutions

                                Creation Date Importance Sort by