SOURCE CODE: Uize.Widget.Dialog.Picker.Date

VIEW REFERENCE

/*______________
|       ______  |   U I Z E    J A V A S C R I P T    F R A M E W O R K
|     /      /  |   ---------------------------------------------------
|    /    O /   |    MODULE : Uize.Widget.Dialog.Picker.Date
|   /    / /    |
|  /    / /  /| |    ONLINE : http://uize.com
| /____/ /__/_| | COPYRIGHT : (c)2009-2014 UIZE
|          /___ |   LICENSE : Available under MIT License or GNU General Public License
|_______________|             http://uize.com/license.html
*/

/* Module Meta Data
  type: Class
  importance: 4
  codeCompleteness: 100
  docCompleteness: 80
*/

/*?
  Introduction
    The =Uize.Widget.Dialog.Picker.Date= widget lets the user select a date from a modal dialog containing a calendar widget, with support for valid date ranges.

    *DEVELOPERS:* `Chris van Rensburg`

    ### In a Nutshell
      - intended to be used by =Uize.Widget.Picker.Date= class, but can be used on its own...
        - provide example
      - uses an instance of the =Uize.Widget.Calendar= class in its implementation to let users pick a date
*/

Uize.module ({
  name:'Uize.Widget.Dialog.Picker.Date',
  required:'Uize.Widget.Calendar',
  builder:function (_superclass) {
    'use strict';

    /*** Class Constructor ***/
      var _class = _superclass.subclass ();

    /*** Override Initial Values for Inherited State Properties ***/
      _class.set ({
        valueWidgetClass:Uize.Widget.Calendar,
        pipedProperties:[
          'displayFormat',
            /*?
              State Properties
                displayFormat
                  .

                  NOTES
                  - this value of this property is piped through to the =displayFormat= state property of the =Uize.Widget.Calendar= value widget
                  - the initial value is =undefined=
            */
          'maxValue',
            /*?
              State Properties
                minValue
                  .

                  NOTES
                  - see the companion =maxValue= state property
                  - this value of this property is piped through to the =maxValue= state property of the =Uize.Widget.Calendar= value widget
                  - the initial value is =undefined=
            */
          'minValue'
            /*?
              State Properties
                maxValue
                  .

                  NOTES
                  - see the companion =minValue= state property
                  - this value of this property is piped through to the =minValue= state property of the =Uize.Widget.Calendar= value widget
                  - the initial value is =undefined=
            */
        ]
      });

    return _class;
  }
});