dojox/widget/CalendarViews.js

  • Provides:

    • dojox.widget.CalendarViews
  • Requires:

    • dojox.widget.Calendar in common
  • dojox.widget._CalendarMonth

    • type
      Function
    • summary
      Adds a dojox.widget._CalendarMonthView view to the calendar widget.
    • source: [view]
        this._addView(dojox.widget._CalendarMonthView);
  • dojox.widget._CalendarMonthView

    • type
      Function
    • chains:
      • dojox.widget._CalendarView: (prototype)
      • dojox.widget._CalendarView: (call)
      • dijit._Templated: (call)
    • mixins:
      • dijit._Templated.prototype: (prototype)
    • summary
      A Calendar view listing the 12 months of the year
  • dojox.widget._CalendarMonthView.templateString

    • type
      String
    • summary
      The template to be used to construct the widget.
  • dojox.widget._CalendarMonthView.datePart

    • type
      String
    • summary
      Specifies how much to increment the displayed date when the user
      clicks the array button to increment of decrement the view.
  • dojox.widget._CalendarMonthView.headerClass

    • type
      String
    • summary
      Specifies the CSS class to apply to the header node for this view.
  • dojox.widget._CalendarMonthView.postCreate

    • type
      Function
    • source: [view]
        this.cloneClass(".dojoxCalendarMonthTemplate", 3);
        this.cloneClass(".dojoxCalendarMonthGroupTemplate", 2);
        this._populateMonths();


        // Add visual effects to the view, if any have been mixed in
        this.addFx(".dojoxCalendarMonthLabel", this.domNode);
    • summary
      Constructs the view
  • dojox.widget._CalendarMonthView._setValueAttr

    • type
      Function
    • parameters:
      • value: (typeof )
    • source: [view]
        this.header.innerHTML = value.getFullYear();
    • summary
  • dojox.widget._CalendarMonthView._getMonthNames

    • summary
  • dojox.widget._CalendarMonthView._populateMonths

    • summary
  • dojox.widget._CalendarMonthView.onClick

    • type
      Function
    • parameters:
      • evt: (typeof )
    • source: [view]
        if(!dojo.hasClass(evt.target, "dojoxCalendarMonthLabel")){dojo.stopEvent(evt); return;}
        var parentNode = evt.target.parentNode;
        var month = parentNode.cellIndex + (parentNode.parentNode.rowIndex * 4);
        var date = this.get("value");


        // Seeing a really strange bug in FF3.6 where this has to be called twice
        // in order to take affect
        date.setMonth(month);
        date.setMonth(month);
        this.onValueSelected(date, month);
    • summary
      Handles clicks on month names
  • dojox.widget._CalendarMonthView.header.innerHTML

    • summary
  • dojox.widget._CalendarYear

    • type
      Function
    • summary
      Adds a dojox.widget._CalendarYearView view to the
      dojo.widget._CalendarBase widget.
    • source: [view]
        this._addView(dojox.widget._CalendarYearView);
  • dojox.widget._CalendarYear.parent

    • summary
  • dojox.widget._CalendarYearView

    • type
      Function
    • chains:
      • dojox.widget._CalendarView: (prototype)
      • dojox.widget._CalendarView: (call)
      • dijit._Templated: (call)
    • mixins:
      • dijit._Templated.prototype: (prototype)
    • summary
      A Calendar view listing 12 years
  • dojox.widget._CalendarYearView.templateString

    • type
      String
    • summary
      The template to be used to construct the widget.
  • dojox.widget._CalendarYearView.displayedYears

    • summary
  • dojox.widget._CalendarYearView.postCreate

    • type
      Function
    • source: [view]
        this.cloneClass(".dojoxCalendarYearTemplate", 3);
        this.cloneClass(".dojoxCalendarYearGroupTemplate", 2);
        this._populateYears();
        this.addFx(".dojoxCalendarYearLabel", this.domNode);
    • summary
      Constructs the view
  • dojox.widget._CalendarYearView._setValueAttr

    • type
      Function
    • parameters:
      • value: (typeof )
    • source: [view]
        this._populateYears(value.getFullYear());
    • summary
  • dojox.widget._CalendarYearView._populateYears

    • summary
  • dojox.widget._CalendarYearView.adjustDate

    • type
      Function
    • parameters:
      • date: (typeof )
      • amount: (typeof )
    • source: [view]
        return dojo.date.add(date, "year", amount * 12);
    • summary
      Adjusts the value of a date. It moves it by 12 years each time.
  • dojox.widget._CalendarYearView.onClick

    • type
      Function
    • parameters:
      • evt: (typeof )
    • source: [view]
        if(!dojo.hasClass(evt.target, "dojoxCalendarYearLabel")){dojo.stopEvent(evt); return;}
        var year = Number(evt.target.innerHTML);
        var date = this.get("value");
        date.setYear(year);
        this.onValueSelected(date, year);
    • summary
      Handles clicks on year values.
  • dojox.widget.Calendar3Pane

    • type
      Function
    • chains:
      • dojox.widget._CalendarBase: (prototype)
      • dojox.widget._CalendarBase: (call)
      • dojox.widget._CalendarDay: (call)
      • dojox.widget._CalendarMonth: (call)
      • dojox.widget._CalendarYear: (call)
    • mixins:
      • dojox.widget._CalendarDay.prototype: (prototype)
      • dojox.widget._CalendarMonth.prototype: (prototype)
      • dojox.widget._CalendarYear.prototype: (prototype)
    • summary
      The Calendar includes day, month and year views.
      No visual effects are included.
  • dojox.widget.MonthlyCalendar

    • type
      Function
    • chains:
      • dojox.widget._CalendarBase: (prototype)
      • dojox.widget._CalendarBase: (call)
      • dojox.widget._CalendarMonth: (call)
    • mixins:
      • dojox.widget._CalendarMonth.prototype: (prototype)
    • summary
      A calendar with only a month view.
  • dojox.widget.MonthlyCalendar._makeDate

    • type
      Function
    • parameters:
      • value: (typeof )
    • source: [view]
         var now = new Date();
         now.setMonth(value);
         return now;
    • summary
  • dojox.widget.YearlyCalendar

    • type
      Function
    • chains:
      • dojox.widget._CalendarBase: (prototype)
      • dojox.widget._CalendarBase: (call)
      • dojox.widget._CalendarYear: (call)
    • mixins:
      • dojox.widget._CalendarYear.prototype: (prototype)
    • summary
      A calendar with only a year view.
  • dojox.widget.YearlyCalendar._makeDate

    • type
      Function
    • parameters:
      • value: (typeof )
    • source: [view]
         var now = new Date();
         now.setFullYear(value);
         return now;
    • summary
  • dojox.widget.CalendarViews

    • type
      Object
    • summary
  • dojox.widget

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary