|
|
@@ -6,6 +6,7 @@ var View = fc.View = Class.extend({
|
|
|
|
|
|
type: null, // subclass' view name (string)
|
|
|
name: null, // deprecated. use `type` instead
|
|
|
+ title: null, // the text that will be displayed in the header's title
|
|
|
|
|
|
calendar: null, // owner Calendar object
|
|
|
options: null, // view-specific options
|
|
|
@@ -187,6 +188,12 @@ var View = fc.View = Class.extend({
|
|
|
------------------------------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
+ // Sets the view's title property to the most updated computed value
|
|
|
+ updateTitle: function() {
|
|
|
+ this.title = this.computeTitle();
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
// Computes what the title at the top of the calendar should be for this view
|
|
|
computeTitle: function() {
|
|
|
return this.formatRange(
|