jquery - Displaying events based on dates in fullcalendar -


i have events recurring weekly recurring events displaying before current week well. can recurring events rendered current week , beyond? im using following code display recurring week not working.

my recurring event

events: [ id: 1, title: hello, start: 2016-01-26t02: 00: 00.000-07: 00, end: 2016-01-26t05: 30: 00.000-07: 00, allday: false, eventtype: availability, rendering: background, color: black, dow: [1,4] 

],

and code attempt criteria

eventrender: function(event, element) {              return (event.start>=moment().startof('week'));             } 

i think should use moment property,this should help:

eventrender: function(event, element) { if(((moment(event.eventdate))>($('#calendar').fullcalendar('getdate').endof('week'))) { element.hide(); }         } 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -