django-bootstrap-calendar
django-bootstrap-calendar copied to clipboard
Month/Year/Day Labels
the current templates do not display the name of the month, year or day you are looking at, as appropriate to month, year or day views. I can see this displayed in demo's for the calendar this was originally based on, but cannot find the means to put this on anywhere in the code.
@fablet did you manage to figure out how to solve this?
Yes as a matter of fact I did. There is a function in the calendar.js file called getTitle. I created div on the calendar.html page and then set a document.getElementById equal to the getTitle and put it between the this._loadEvents(); and this.render(); calls that instantiate the calendar. You can tweak how the titles display between the getTitle function and the title strings below defaults at the top of the calendar
@fablet can you explain a little better the changes that u did , please ? 'Cause my instance is having the same problem :(
document.getElementById("id of the div you create on calendar.html where you want titles to show up").innerHTML = this.getTitle();