-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

1 Answer 1

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 }); 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.