FullCalendar today button

71 Views Asked by At

Everyone knows how to change the "today" button to read "Today" with a capital T? Thx!

Tried to create my own button recalling the function but I could not find today function.

Should be with customButtons but does not work:

$(document).ready(function(){
    $('#CalendarioWeb').fullCalendar({
        header:{
            left:'today,prev,next,Today',
            center:'title',
            right:'month,basicWeek,basicDay,agendaWeek,agendaDay'
        },
        customButtons:{
            Today:{
                text:"Today",
                click:function(){
                    "today"
                }
            }
        }
    });
1

There are 1 best solutions below

1
On

Sorry, now working with:

$(document).ready(function(){
    $('#PruebaCalendario').fullCalendar({
        header:{
            left:'today,prev,next,Today',
            center:'title',
            right:'month,basicWeek,basicDay,agendaWeek,agendaDay'
        },
        customButtons:{
            Today:{
                text:"Today",
                click:function(){
                    $('#PruebaCalendario').fullCalendar('today');
                }
            }
        }
    });
});