I am using FullCalendar.io React component in my project for all calendar use cases. Is there any way to display only 3 days instead of all days of the week? I have tried using views attribute but it didn't work.
<FullCalendar
plugins={[ dayGridPlugin, interactionPlugin , timeGridPlugin]}
views = {{
agendaThreeDay: {
type: 'agenda',
duration: { days: 3 },
buttonText: '3 day'
}
}}
selectable
initialView = {agendaThreeDay}
/>
The issue is resolved by changing the way agendaThreeDay view is used in initial view.
<FullCalendar
plugins={[ dayGridPlugin, interactionPlugin , timeGridPlugin]}
views = {{
agendaThreeDay: {
type: 'agenda',
duration: { days: 3 },
buttonText: '3 day'
}
}}
selectable
initialView = 'agendaThreeDay'
/>