How to replace the text "all day" in the day mode?

I tried putting allDayText: 'LOL', in the default values ​​of var without any success right after the header.

Does anyone know where, but he, if I want "LOL" instead of "all day"?

+4
source share
5 answers

As stated in the comments, you should use the response linked in the comments, which is higher than mine and does not require editing the original JavaScript.


If you open fullCalendar.js and look at the very first sections of the file, there is something marked as

 //locale 

there you will find something like

 buttonText: { prev: ' ◄ ', next: ' ► ', prevYear: ' << ', nextYear: ' >> ', today: 'today', month: 'month', week: 'week', day: 'day' }, 

Change today to

 today: 'LOL!', 

et viola!

If you want to dynamically change text on the client side, use jquery like this

 $('.fc-button-today span span').html('lollllll'); 
+3
source

This should do it:

 $('#calendar').fullCalendar({ defaultView: 'agendaDay', allDayText: 'LOL' }) 
+10
source

This works for me:

 $('#calendar').fullCalendar({ allDayText: 'XXXXX' }) 

Tip. Never modify the full-calendar.js file. Configure something in your script.

+5
source

You can use JQUERY and eventRender

 eventRender: function(event, element){ element.children(':first-child').text("new text"); }, 
0
source

In Main.Js find allDayText="all-day" and replace with allDayText="LOL" .

-3
source

All Articles