[FullCalendar 2] javascript code in advancedconfig for defaultview for fullcalendar2

Forge Component
(30)
Published on 2019-03-29 by Daniel Filipe
30 votes
Published on 2019-03-29 by Daniel Filipe

Hi ,

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

Thanks

Srinivas Nalamati

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