Topic: Passing the selected calendar event into a custom editor
Sofia Bennett
free
asked 3 weeks ago
A custom modal should edit the clicked appointment. The callback receives an action object rather than my expected event model.
Which property contains the selected event?
Arkadiusz Idzikowski
staff
answered 3 weeks ago
Read the appointment from action.event rather than treating the entire callback argument as the event model. The output uses MdbCalendarEventAction, which wraps the underlying event and also exposes preventDefault(). Cancel the default action before opening your custom editor.
Pass the event's stable identifier into your form and apply confirmed changes to the matching appointment. If its shape differs from your application model, please share an anonymized callback value and your event interface so we can identify the required mapping.
https://mdbootstrap.com/docs/angular/plugins/calendar/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB5 9.1.0
- Device: Desktop
- Browser: Chrome
- OS: macOS
- Provided sample code: No
- Provided link: No