fullcalendar language

Forum to discuss the new web client version of Servoy.

fullcalendar language

Postby gonayp » Wed Sep 27, 2017 3:49 pm

Hello!

I want to know how I can read de fullcalendar in spanish. I see this in fullcalendar doc:
https://fullcalendar.io/docs/text/locale/

but i dont know how apply this in servoy 8

Thanks
gonayp
 
Posts: 3
Joined: Wed Sep 06, 2017 3:33 pm

Re: fullcalendar language

Postby paronne » Wed Sep 27, 2017 4:28 pm

Hi, the fullcalendar already has built in translation for the Spanish language.

Simply set the language to be used in the options object to be used for the rendering of the calendar

Code: Select all
/** @type {svy-fullcalendar.FullCalendarOptions} */
var options = {
        eventSources: [ {events: [{ title: "lunch event", start: new Date() }]}],
   selectable: true,
   editable: true,
   defaultView: 'agendaWeek',
   showCurrentTimeline: true
}

// you can see in code completion which fullcalendar options are supported
options.lang = 'es';

var calendar = elements.fullcalendarElementName.fullCalendar(options);


You can add fullcalendar configurations into the options object

If you need more information about the fullcalendar component check the wiki page.

https://github.com/Servoy/fullcalendarcomponent/wiki

Regards,
Paolo
paronne
 
Posts: 92
Joined: Fri Nov 02, 2012 3:21 pm

Re: fullcalendar language

Postby gonayp » Wed Sep 27, 2017 4:40 pm

Its working!

thanks you very much!
gonayp
 
Posts: 3
Joined: Wed Sep 06, 2017 3:33 pm

Re: fullcalendar language

Postby paronne » Wed Sep 27, 2017 5:02 pm

You are welcome !
paronne
 
Posts: 92
Joined: Fri Nov 02, 2012 3:21 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest

cron