-1

I try to use fullcalendar and show header nav buttons but not working

JS code

$(function(){
      var calendarEl = $('#calendar');
      var calendar = new FullCalendar.Calendar($(calendarEl)[0], {
        initialView: 'dayGridMonth',
        weekends: true,
        navLinks: true,
        header: {
          left: 'prev,next today',
          center: 'title',
          right: 'year,month,basicWeek,basicDay'

        },
      });
      calendar.render();
    });

Thank you for you help, it's for work...

fullcalendar header toolbar buttons not showing when application css and javascript tags are initialized on rails Not working

https://fullcalendar.io/docs/v3/header not working

FullCalendar header buttons missing not working

mp674
  • 11
  • 2

1 Answers1

4

You are using fullcalendar v5, and following old documentation, here is V5 DOCS

var calendar = new Calendar(calendarEl, {
  headerToolbar: { center: 'dayGridMonth,timeGridWeek' }, // buttons for switching between views
});
Zia ur Rehman
  • 573
  • 3
  • 15