Topic: Calendar control addEvents method does not work (silently fails?)

Realmonitor Ltd priority asked 2 years ago


*Expected behavior*I would expect to add events to calendar

*Actual behavior*It does not work

*Resources (screenshots, code snippets etc.)*Snippet:https://mdbootstrap.com/snippets/standard/realmonitor-ltd/4054545


Realmonitor Ltd priority commented 2 years ago

At least I would expect a proper error message if something is incorrect with events payload.


Grzegorz Bujański staff answered 2 years ago


The events were not added because you entered an incorrect format for the start and end date of the event. You can find more about the format here: https://mdbootstrap.com/docs/standard/plugins/calendar/#section-event-formats

Here you will find a fixed snippet that works: https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/4056945

I also recommend updating the calendar plugin to a newer version. In the last version, we improved the display of short events.

When it comes to returning information with errors - we've decided to not add error handling on our side. It would require adding many lines of code, which would significantly increase the size of our package. This would make the page loading slower. Which is of particular importance for mobile devices


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.1.0
  • Device: Laptop
  • Browser: Chrome latest
  • OS: Linux - Pop OS
  • Provided sample code: No
  • Provided link: Yes