Hi all,
I use the Fullcalendar component in my Servoy 2020.03
Now I can’t figure out how to do some actions on the navigation click:
Calendar::prev
Calendar::next
Calendar::today
Normally I do
$(‘button.fc-prev-button’).on(‘click’, function() {
// some code here
}
But this is not possible in Servoy.
I see there is a method:
elements.fullcalendarcomponent.prev()
How can I code in the prev , next and today actions ?
Thank you
Hi Derk,
if I remember correctly, you select the calendar component in the form editor, and in the properties you can attach your ordinary Servoy functions to the various callbacks from the component.
Hope this helps,
Christian
Hi Derk,
what do you need to do when the user press prev/next/today buttons ?
There are no public events exposed for such click, the calendar will simply switch view, if you have a eventSource using a callback function to fetch the events such callback will run automatically when navigating the calendar.
If you really need to do something specific at the prev/next/today click you can consider to hide the default calendar buttons in header and create your own buttons using simple button components.
Regards,
Paolo
Hi Paolo,
Thanks for your reply.
I want to do set some buttons disabled and do some other stuff.
I think it is the best solution here to build my own buttons then, and hide the fullcalendar ones.
In the future is it an option to have these methods public and to add own code to it?
Tnx
Derk