User123123
User123123

Reputation: 573

how to change full calendar view on day click in react

I am using react full calendar and wondering how I can allow users to change the calendar view to timeGridDay when clicking on a day in the monthly view.

Upvotes: 2

Views: 1382

Answers (1)

Yeasin Arfat
Yeasin Arfat

Reputation: 21

by allowing navLinks you can do this. so if the user clicks on a date they will see a single day view.

<FullCalendar
    plugins={[dayGridPlugin]}
    initialView="dayGridMonth"
    events={events}
    //allowing user to click on date.
    navLinks={true}
/>

Upvotes: 2

Related Questions