| Issue 2407: | view.title is null in viewRender | |
| 3 people starred this issue and may be notified of changes. | Back to list |
Object 'view' property 'title' no longer seems to exist in latest version, despite being in documentation (http://fullcalendar.io/docs/views/View_Object/). Example of bug is here, see viewrender listener: http://jsbin.com/keyibu/5/edit?js,console,output Fixed in own verion 2.2.5 by extending view object with 'title' property and then in computeTitle(), line 6313: computeTitle: function() { return this.title = this.formatRange( { start: this.intervalStart, end: this.intervalEnd }, this.opt('titleFormat') || this.computeTitleFormat(), this.opt('titleRangeSeparator') ); },
Jan 10, 2015
#3
war...@gmail.com
Jan 10, 2015
Found a solution:
Place the code
this.title = this.formatRange(
{ start: this.intervalStart, end: this.intervalEnd },
this.opt('titleFormat') || this.computeTitleFormat(),
this.opt('titleRangeSeparator')
);
inside the View.js: renderView: function()...
Before this.trigger('viewRender'...);
Jan 10, 2015
(No comment was entered for this change.)
Status:
Accepted
Labels: Type-Bug
Jan 10, 2015
Issue 2410 has been merged into this issue.
Jan 11, 2015
This is fixed in v2.2.6. The omitted property has been restored. Sorry and thanks!
Status:
Released
Jan 11, 2015
Still doesn't work :( Same issue, if i access the view.title inside the viewRender callback, it is blank now.
Jan 11, 2015
Gah, I didn't test for it specifically in viewRender. It is indeed still undefined there. Will get that fixed in the next version. NOTE TO SELF: call View::updateTitle from View::setRange
Status:
Accepted
Jan 11, 2015
(No comment was entered for this change.)
Summary:
view.title is null in viewRender
(was: view.title property no longer exists - still present in documentation.)
Jan 12, 2015
Implemented (but not yet released) https://github.com/arshaw/fullcalendar/commit/de08415b5bd79e58bb0317e2b856ecee52f6998b
Status:
Implemented
Jan 13, 2015
That seems to solve it! Thanks!
Feb 10, 2015
Released in v2.2.7. https://github.com/arshaw/fullcalendar/releases/tag/v2.2.7 Thanks!
Status:
Released
|
|
| ► Sign in to add a comment |