You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to customize the year view of the fullcalender from jquery plugin. I am explaining my code below.
function getCalendar() {
var todayDate = new Date().toISOString().slice(0, 10);
// var evStartDate = new Date(inputdate)
//console.log('date',evStartDate);
//addClassByDate(evStartDate);
$('#calendar').fullCalendar({
theme: true,
header: {
left: 'prev,next',
center: 'title',
right: 'year,month,agendaWeek,agendaDay'
},
///////// edit
dayClick: function(date, jsEvent, view) {
//alert('day click');
},
eventClick: function(event, jsEvent) {
//alert('event clicked');
$('#eventpopup').modal({
backdrop: 'static'
});
},
eventRender: function(event, element, view){
var evStart = moment(view.intervalStart).subtract(1, 'days');
var evEnd = moment(view.intervalEnd).subtract(1, 'days');
if (!event.start.isAfter(evStart) ||
event.start.isAfter(evEnd)) { return false; }
},
///////////
defaultDate: todayDate,
navLinks: true, // can click day/week names to navigate views
editable: true,
eventLimit: true, // allow "more" link when too many events
events: [{
title: '1',
start: '2017-12-01'
}, {
title: '2',
start: '2017-12-02'
}, {
id: 999,
title: '5',
start: '2017-11-02'
}]
});
}
Here In my month view all numbers(i.e-1,2...) is shown in date wise but in case of year view it showing multiple. Here I need some changes in case of year view means the total count like 2+1 will be shown in month wise. Let say for this example in month of December the total count should be 3 similarly in month of November the total count should 5 when only user click on year view.
I have also created one plunkr link which is given below.
There is no built-in Year view currently, and there is an open issue to add that feature: #1140
↑
Please visit the link, give a 👍 to vote (?), press the 🔈Subscribe button to receive updates.
It looks like your example is based on quite an old version of FullCalendar (from 2013) and the source had been modified to have a Year view added. If this is a bug, please supply a runnable, stripped-down demonstration which uses an official and recent release.
I need to customize the year view of the fullcalender from jquery plugin. I am explaining my code below.
Here In my month view all numbers(i.e-1,2...) is shown in date wise but in case of year view it showing multiple. Here I need some changes in case of year view means the total count like 2+1 will be shown in month wise. Let say for this example in month of December the total count should be 3 similarly in month of November the total count should 5 when only user click on year view.
I have also created one plunkr link which is given below.
my plunkr example code.
Here I need to resolve this type of requirement.
The text was updated successfully, but these errors were encountered: