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 removeeventsand 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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -