Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Month/Year/Day Labels #16

Open
fablet opened this issue Jun 25, 2015 · 4 comments
Open

Month/Year/Day Labels #16

fablet opened this issue Jun 25, 2015 · 4 comments

Comments

@fablet
Copy link

fablet commented Jun 25, 2015

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.

@anderspetersson
Copy link

@fablet did you manage to figure out how to solve this?

@fablet
Copy link
Author

fablet commented Sep 21, 2015

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

@daveseco7
Copy link

@fablet can you explain a little better the changes that u did , please ? 'Cause my instance is having the same problem :(

@fablet
Copy link
Author

fablet commented Nov 20, 2015

document.getElementById("id of the div you create on calendar.html where you want titles to show up").innerHTML = this.getTitle();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants