67
Views
1
Comments
[FullCalendar 2] javascript code in advancedconfig for defaultview for fullcalendar2
Question
fullcalendar-2
Web icon
Forge asset by João Grazina

Hi ,

what is the javascript code to change the defaultview dynamically or based on some conditions.

Thanks

Srinivas Nalamati

2018-12-09 19-13-19
Tiago Gomes

Hi Srinivas,

You can achive this by adding to the AdvancedConfig the defaultView required. Just control it with a variable, this variable need to have the view you want and just refresh the calendar.

defaultView:'"+Var1+"',

Hope it helps,

Regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.