skip to Main Content

I’m using Fullcalendar.io with React and I’m interested in displaying only the Week view (not a custom special one, just the default week view). Is there a way to do it without creating a custom view?

2

Answers


  1. References : https://fullcalendar.io/docs/timegrid-view

    View this example : https://stackoverflow.com/a/78710222/15462731

    Set initialView key value to timeGridWeek for default week view of Full Calendar.

    Login or Signup to reply.
  2. First of all not sufficient Data is given you should include the Work you’ve tried from your Side.

    I Searched and found a code but you need timeGridPlugin from fullcalendar/timegrid library and check the below code I’m new to react dev so,
    check if you can modify code anywhere

    Code:

    import { Calendar } from '@fullcalendar/core';
    import timeGridPlugin from '@fullcalendar/timegrid';
    
    const MyCalendar = () => (
      <div>
        <FullCalendar
          plugins={[timeGridPlugin]}
          views={["timeGridWeek"]} // this line adjusts calendar to only week View 
        />
      </div>
    );
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search