v4 events doesn`t work
See original GitHub issueI have a little weird with an events: [ { } ] when i try to use fullcalendar v4, events by ajax are not displayed. Look at my examples please:
in this case, its okey:
eventSources: [
{
url: ‘/calendar/load’,
method: ‘POST’,
}
],
-----------------------------------------------------// in this case, doesn
t work:
events: [ { url: '/calendar/load', method: 'POST', } ],
i am confused! Check this out please
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Solved: Create Event (v4) doesn't work properly
Solved: Hello, I've built a flow, where you can request vacation from your CEO. The flow works like this: You enter your name,...
Read more >FullCalendar-v4 allDay events not rendering - Stack Overflow
I have managed to get my recurring events to show up on the calendar, but my single allDay events will not render and...
Read more >[GA4] Monitor events in DebugView - Analytics Help
Monitor events from a website or mobile app as the events are triggeredThe DebugView report shows you data (from events, event parameters, ...
Read more >Events | Node.js v19.3.0 Documentation
This method is intentionally generic and works with the web platform EventTarget interface, which has no special 'error' event semantics and does not...
Read more >UI Events - W3C
Publication as a Working Draft does not imply endorsement by W3C and its Members. ... 6.3.4 Default actions and cancelable keyboard events.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Do you mean you don’t see any events in my example?
Your example is using the
events
setting which should just be a string (url) but you have an event source object which only works in theeventSources
setting.The
events
setting does not have any way to make it a “POST” instead of “GET” so if you need it to be POST you could useeventSources
(when it’s fixed) or for now using a callback function:https://fullcalendar.io/docs/events-function
It looks like the issue is that the JSON needs to be an array of events but yours is just one event so it needs to be wrapped in an array like this example:
https://codepen.io/acerix/pen/EJWqQv?editors=0010
You do need
eventSources
to change it to a POST request, but there is actually an open issue for that since it’s not working:https://github.com/fullcalendar/fullcalendar-scheduler/issues/521 ↑ Could you please visit the link, give a 👍 to vote (?), press the 🔈Subscribe button to receive updates?