I am looking to have the dayGridMonth displayed when I click on a custom button within FullCalendar. The functionality I want is for the dayGridMonthFunc to access the internal API daygridmonth and display the screen as a month.
<div>
<FullCalendar
class='bit-calendar'
:options="config"
ref="fullCalendar"
locale=ko
defaultView="dayGridMonth"
:header="{
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
}"
:headerToolbar="{
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
}"
:customButtons="{
dayGridMonth: {
text: '월',
click: this.dayGridMonthFunc
},
timeGridWeek: {
text: '주',
click: this.timeGridWeekFunc
},
timeGridDay: {
text: '일',
click: this.timeGridDayFunc
},
}"
/>
</div>
methods: {
dayGridMonthFunc(event) {
console.log(event);
}
}