Topic: MDB5 Advanced Pro Calendar Plugin

edharris4 free asked 2 years ago


Code Snippet

window.addEventListener('addEvent.calendar', function() {
  for(var b in window) {
    if(window.hasOwnProperty(b)) console.log(b+\" = \"+window[b]);
  }
});

*_Actual behavior_*Currently when I've added an event to the calendar, I just am displaying all the DOM elements to the Chrome console. I've been trying to find the object that is emitted when an event is added to the calendar but can't determine its name. Without knowing what object is emitted for this I can't add the event to the php database.

Resources (screenshots, code snippets etc.)


Grzegorz Bujański staff answered 2 years ago


Try these solutions:

window.addEventListener('addEvent.mdb.calendar', (newEvent) => {
  console.log(newEvent)
});

frank81818@hotmail.com free commented 1 year ago

After add/edit, How can get the value of edited summary / description / start / end ? Can you please help to give am example ? thanks a lot!


frank81818@hotmail.com free commented 1 year ago

the sample code of MDB5 * Version: PRO 3.10.2 is working to return value. But Version PRO 4.0 does not work. return null value.


frank81818@hotmail.com free commented 1 year ago

solved! the returned value is ok.

(because of PRO4, use e.event , but PRO3.10 use e)


Grzegorz Bujański staff commented 1 year ago

I understand that you have already dealt with this?


frank81818@hotmail.com free commented 1 year ago

yes, thanks! By the way, another question: when the content more than 4 rows, the field at the top will overflow. Can calendar auto height to view the content all?


Grzegorz Bujański staff commented 1 year ago

I'm not sure what exactly you mean. Can you say more about it? Which field exactly do you mean?



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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.1
  • Device: Mobile; Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No