Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove "previous", "next" and "today" button in FullCalendar

I've tried something like this

viewRender: function(currentView){

            $('body').remove('.fc-prev-button');
            $('body').remove('.fc-next-button');
            $('body').remove('.fc-today-button');

            }
        });

But it doesn't remove those buttons. What am I doing wrong? What is the correct way to do it in fullcalendar configuration?

like image 849
lightning mcqueen Avatar asked Sep 06 '25 03:09

lightning mcqueen


1 Answers

You just don't have to set the options in the header. Something like that.

header: {
    left:   'title',
    center: '',
    right:  'today '
}

Take a look here: Fullcalendar doc

like image 85
fingerprints Avatar answered Sep 07 '25 22:09

fingerprints