Skip to content

Instantly share code, notes, and snippets.

@cristiandley
Created March 20, 2014 12:32
Show Gist options
  • Save cristiandley/9662760 to your computer and use it in GitHub Desktop.
Save cristiandley/9662760 to your computer and use it in GitHub Desktop.
jQuery FullcalendarConf
var restCon = $("[id$=calendar]");
var urlVal = function() {
var restUrl = "/rest/ulr/to/get/data";
return restUrl;
}
restCon.fullCalendar({
defaultView: 'agendaDay',
firstDay: 0,
header: {
left: "prev,next today",
center: "title",
right: "agendaDay,month,agendaWeek"
},
allDayText: 'todo el día',
dayNamesShort:
['Dom','Lun', 'Mar','Mie','Jue','Vie','Sab'],
dayNames:
['Domingo','Lunes', 'Martes','Miercoles','Jueves','Viernes',
'Sabado'],
monthNames:
['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio',
'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
agendaDay: 'true',
buttonText:
{
prev: '&lsaquo;', // <
next: '&rsaquo;', // >
prevYear: '&laquo;', // <<
nextYear: '&raquo;', // >>
today: 'hoy',
month: 'mes',
week: 'semana',
day: 'día'
},
disableDragging: true,
events: {
url: urlVal(),
type: "GET",
error: function() {
alert("Ocurrio un Error!");
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment