Hi again:This line in page_render…
$this->CalendarOptions->set("headerToolbar.left", "prev next today myButton");
$this->CalendarOptions->set("customButtons.myButton.text", "My text");
…produces (as I can see in the “sources” tab in Chrome console):
, options = ew.deepAssign({}, ew.calendarOptions, {
"fullCalendarOptions": {
"initialView": "dayGridWeek",
"weekNumbers": "true",
"businessHours": "true",
"firstDay": "1",
"initialDate": "2024-04-19",
"headerToolbar": {
"right": "dayGridMonth,dayGridWeek,timeGridWeek,timeGridDay,listMonth",
"left": "prev next today BtnPlaniDiaria"
},
"customButtons": {
"myButton": {
"text": "Enviar"
}
},
which is the code I used in my previous script (https://discourse.hkvstore.com/t/integrating-fullcalendar-and-populating-from-json/2806/13), the headerToolbar lines works, but the customButtons ones don’t…Thanks