javascript - Fullcalendar.js, month view, get cell date while render for even/odd week number -
anybody knows how cell date while render event descision render or not event? in month view. made "week view" month turns hell's kitchen. tried modificate fullcalendar script, seems meaningless.
$('#calendar').fullcalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaweek,agendaday' }, mintime: '08:00', //maxtime: '22:00', lang: 'ru', defaultview: 'agendaweek', editable: false, weeknumbers: true, alldaydefault: false, events: events, eventrender: function(element, event, view){ $(event).find('div.fc-title').html(element.title); $(event).find('span.fc-title').html(element.title); // odd-even switch (element.range) { case 'every week': var period = 'every'; break; case 'even week': var period = 'even'; break; case 'odd week': var period = 'odd'; break; default: // statements_def break; } if (view.type == 'agendaweek'){ mydate = new date(view.currentrange.start._d); var result = getweeknumber(mydate); if (period == result) { return true; }else if (period == 'every'){ return true; }else{ return false; } }else if(view.type == 'month'){ //don't know do, view start , end date - month start , end } // end odd-even } });
can this?
Comments
Post a Comment