How can I set a week in Fullcalendar Scheduler?

0

I'm doing a School Schedule, but I need it to only be fixed for one week , so it does not have to be repeated every week

I do not know if it is a specific function of the library, or in what way I can leave the week fixed. Greetings thank you This is my code:

 <script>
  $(document).ready(function() {
    $('#calendar').fullCalendar({
    weekends: false,
   allDaySlot: false,
  defaultView: 'horario',
  views: {
    horario: {
      type: 'agenda',
      duration: { weeks: 1 },
    }
  },
  events: [
    {
      title  : 'event1',
      start  : '2018-11-19T07:30:00',
      end    : '2018-11-19T9:30:00',
    },
    {
      title  : 'event2',
      start  : '2018-11-20T08:00:00',
      end    : '2018-11-20T08:30:00',
    },
    {
      title  : 'event2',
      start  : '2018-11-20T08:30:00',
      end    : '2018-11-20T13:00:00',
    },
    {
      title  : 'event3',
      start  : '2018-11-22T12:30:00',
      allDay : false // will make the time show
    }
  ]
});

        });


</script>
    
asked by Irving Soto Guzman 22.11.2018 в 19:31
source

0 answers