jquery - Customise FullCalendar -
i have full calendar displayed on page show when people on holiday or off sick. however, instead of showing bar spread across days, have persons initials displayed on day in question. have idea how may go this?
my current code is:
function initialisecalendar(data) { $('#calendar').fullcalendar({ events: data, weekends: false, theme: false, height:600, eventlimit: true, eventclick: function (event) { window.open(event.url); return false; }, eventafterrender: function (event, element, view) { var startdate = event.start._i; var timeindex = startdate.indexof("t"); var startsub = startdate.substring(timeindex + 1, timeindex + 3); if (startsub == "12") { var e = $('a[href="' + event.url + '"') e.css('margin-left', '100px'); } var enddate = event.end._i; var index = enddate.indexof("t"); var endsub = enddate.substring(index + 1, index + 3); if (endsub == "12") { var e = $('a[href="' + event.url + '"') e.css('margin-right', '100px'); } }, header: { left: 'title', center: '', right: 'today prev,next month basicweek basicday' } }); }
i open using alternate plugins if there 1 allow this.
thanks
Comments
Post a Comment