Topic: Get date range calendar is being generated for
aztecadmin priority asked 2 years ago
trying to find the date range being utilized for the calendar instance when update.mdb.calendar is fired. Unable to find it beyond the html in the event.target.
schauttech priority answered 1 month ago
Is there a native way via the API to get the current date range?
Can you show me an example of how this is being recommended to be done?
Kamila Pieńkowska staff commented 1 month ago
I've prepared a snippet for you: https://mdbootstrap.com/snippets/standard/kpienkowska/6292427 When you click the test button, you will see what information you can get in the console.
Mateusz Lazaru staff answered 2 years ago
update.mdb.calendar
doesn't return date range. There are three events returning event object (which includes date range):
addEvent.mdb.calendar
editEvent.mdb.calendar
deleteEvent.mdb.calendar
aztecadmin priority commented 2 years ago
how is the date range for the calendar created on load?
Nevermind, I made a work around just pulling the date_data attributes from the calendar cells. Would be nice if it was an available attribute or method in the calendar object. also it needs to allow ISO or US date formats instead of just using European format.
Mateusz Lazaru staff commented 2 years ago
If you want to see these options in MDB Calendar, please use this form:
https://mdbootstrap.com/support/new-feature-request/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.0.1
- Device: PC
- Browser: Chrome
- OS: Windows 11
- Provided sample code: No
- Provided link: No