#15063 closed defect (fixed)
no way to set Date programmatically for any of the mobile DatePicker widgets
Reported by: | ben hockey | Owned by: | ykami |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | DojoX Mobile | Version: | 1.7.2 |
Keywords: | Cc: | Eric Durocher | |
Blocked By: | Blocking: |
Description
at http://download.dojotoolkit.org/release-1.7.2/dojo-release-1.7.2/dojox/mobile/tests/test_SpinWheelDatePicker.html i opened the console and tried to set the value via
dijit.byId('spin1').set('values', [2010, 9, 1])
i tried various other ways too without any success. if there is a way to set the date programmatically then consider this a documentation defect and it can be closed once the docs at http://livedocs.dojotoolkit.org/dojox/mobile/SpinWheelDatePicker have been updated
Change History (8)
comment:1 Changed 9 years ago by
comment:2 Changed 9 years ago by
Milestone: | tbd → 1.8 |
---|---|
Priority: | undecided → high |
Status: | new → assigned |
comment:3 Changed 9 years ago by
Thanks for the report. The setter for the slots simply accept label strings. So ["2010", "Sep", "1"] should work. But apparently it is inconvenient because the labels are locale dependent. It should accept [2010, 9, 1] as well as you suggested.
comment:6 Changed 9 years ago by
Cc: | Eric Durocher added |
---|
in addition, i was also not able to get the value set via the constructor. for example,