Changeset 1801


Ignore:
Timestamp:
2011-01-03 10:47:41 (2 years ago)
Author:
karel
Message:

allow changeYear to be set in shorthand rather than via pickerOptions

see #387
We already allow yearRange to be set directly via the control's options. Because it only makes sense
in combination with changeYear, it's only logical that we allow setting changeYear in the same way.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/date.js

    r1769 r1801  
    380380                buttonImageOnly: true, 
    381381                showOn: "button", 
     382                changeYear: this.changeYear, 
    382383                yearRange: this.yearRange 
    383384            }; 
  • trunk/samples/kauri-forms-sample/src/main/kauri/pages/basic-controls1.html.xml

    r1798 r1801  
    2121                  'birthday': { 
    2222                      base: 'date', 
    23                       yearRange: '-100:+0', 
     23                      control: { 
     24                        changeYear: true, 
     25                        yearRange: '-100:+0' 
     26                      }, 
    2427                      label: 'What is your date of birth?' 
    2528                  }, 
  • trunk/samples/kauri-forms-sample/src/main/kauri/pages/basic-controls2.html.xml

    r1798 r1801  
    2222                  'birthday': { 
    2323                      base: 'date', 
    24                       yearRange: '-100:+0', 
     24                      control: { 
     25                        changeYear: true, 
     26                        yearRange: '-100:+0' 
     27                      }, 
    2528                      label: 'What is your date of birth?' 
    2629                  }, 
  • trunk/samples/kauri-forms-sample/src/main/kauri/pages/basic-controls3.html.xml

    r1798 r1801  
    1515             'birthday':{ 
    1616                  base:'date', 
    17                   yearRange:'-100:+0' 
     17                  control: { 
     18                    changeYear: true, 
     19                    yearRange:'-100:+0' 
     20                  } 
    1821              } 
    1922          } 
  • trunk/samples/kauri-forms-sample/src/main/kauri/pages/basic-controls4.html.xml

    r1798 r1801  
    1515              "birthday": { 
    1616                  "base": "date", 
    17                   "yearRange": "-100:+0" 
     17                  "control": { 
     18                    "changeYear": true, 
     19                    "yearRange": "-100:+0" 
     20                  } 
    1821              } 
    1922          } 
Note: See TracChangeset for help on using the changeset viewer.