Fullcalendar Google: Filter by location -
within fullcalendar i'm trying filter out specific events using location strings coming google calendar. e.g. show events location string of "room 1"
$('#calendar') .fullcalendar( { googlecalendarapikey: 'myapikey', defaultview: 'listday', events: { googlecalendarid: 'calendarid', } });
i have looked through docs , have tried removeevents
and clientevents
not sure how specify library pick on google api's location strings.
edit: adapted post stack. give type error messed code "indexof($('room 2').val()) >= 0}"
, i've tried combinations of no luck. think right code though, not implementing correctly.
$('#calendar') .fullcalendar( { googlecalendarapikey: 'myapikey', defaultview: 'listday', events: { googlecalendarid: 'calendarid', } eventrender: function eventrender( event, element, view ) { return ['all', event.location].indexof($('room 2').val()) >= 0}
Comments
Post a Comment