Closed cla-dev closed 6 years ago
Hi, guess you need to merge them on the server side?
Hi, thank you for the quick reply...
any idea how to create this array of events from google calendar?
i do not know where to start...
thanks,
Rovin
Hi again,
in the fullcalendar.io docs it mentions using eventSources to set multiple event sources, however I do not see that implemented in yii2fullcalendar?
please advise...
thanks,
Rovin
Hi Philip, I figured it out :)
here is the code for those looking to do the same:
<?= \yii2fullcalendar\yii2fullcalendar::widget(['header'=>['left'=>"today prev,next",'center'=> "title",'right'=>"basicWeek,month"],
'id'=>'dash-calendar',
'googleCalendar'=>true,
'clientOptions'=>[
'googleCalendarApiKey'=>'
<?= \yii2fullcalendar\yii2fullcalendar::widget(['header'=>['left'=>"today prev,next",'center'=> "title",'right'=>"basicWeek,month"], 'id'=>'dash-calendar', 'googleCalendar'=>true, 'clientOptions'=>[ 'googleCalendarApiKey'=>'<YOUR API KEY>', 'eventSources'=>[ $dbevents, //events array from database ['googleCalendarId'=>'en.sr#holiday@group.v.calendar.google.com', //events from public google calendar 'allDayDefault'=>true, 'color'=>'orange', ], ] ], 'defaultView'=>'month', ])?>
happy coding folks!
Hi,
I am new to this plugin and need to display both google events and events from the database on the same calendar. I have it working with either google events or events from the database, but not both.
when I set the clientOptions to display the google events, then all the database events do not display.
please help!
thanks,
Rovin