Hi Lauris,
I`m starting to expand FulCalendar and got a question:
sample method for creating event
const addEvent = () => {
console.log("there you Go!");
calendarOptions.events = [
...calendarOptions.events,
{
title: "My Title",
start: "2022-11-16",
description: "lorem ipsum lorem ipsum",
className: "",
},
];
};
In addition to the fields above, you may also include your own non-standard fields in each Event object. FullCalendar will not modify or delete these fields. For example, developers often include a description field for use in callbacks like event render hooks. Any non-standard properites are moved into the extendedProps hash during event parsing.
Lauris please omit my question.
I was tired
for any others ..... there is no problem for putting custom fields.
If you just load events from database your additional properties will be available through
event.extendedProps.<yourCustomProperty>
Hi Krystian,
Glad to hear that you already figured this out Let me know if you will need any further help.
Regards,
Lauris Stepanovs,
Keenthemes Support Team