Get date range calendar is being generated for


Topic: Get date range calendar is being generated for

aztecadmin pro premium 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.


mlazaru 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 pro premium 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.


mlazaru 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/


schauttech pro premium priority answered 2 months 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 2 months 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.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • 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