Fullcalendar component 1.1.2

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Fullcalendar component 1.1.2

Postby derk.hulshof » Fri Apr 10, 2020 12:12 pm

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:


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:
How can I code in the prev , next and today actions ?

Thank you
Posts: 105
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands

Re: Fullcalendar component 1.1.2

Postby swingman » Mon Apr 13, 2020 9:10 am

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 Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK

http://www.postgresql.org - The world's most advanced open source database.
User avatar
Posts: 1301
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Fullcalendar component 1.1.2

Postby paronne » Mon Apr 13, 2020 11:10 am

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.

Posts: 137
Joined: Fri Nov 02, 2012 3:21 pm

Re: Fullcalendar component 1.1.2

Postby derk.hulshof » Tue Apr 14, 2020 7:58 am

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?

Posts: 105
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands

Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 9 guests