Rev | Line | |
---|
[483] | 1 | define([ |
---|
| 2 | "dojo/_base/lang", |
---|
| 3 | "dojo/_base/window" |
---|
| 4 | ], function(lang, win){ |
---|
| 5 | |
---|
| 6 | // module: |
---|
| 7 | // dojox/mobile/_PickerChooser |
---|
| 8 | |
---|
| 9 | return{ |
---|
| 10 | // summary: |
---|
| 11 | // This widget chooses a picker class according to the current theme. |
---|
| 12 | // Imports ValuePicker-based date/time picker when the current theme is "android". |
---|
| 13 | // Imports SpinWheel-based date/time picker otherwise. |
---|
| 14 | |
---|
| 15 | load: function (id, parentRequire, loaded){ |
---|
| 16 | // summary: |
---|
| 17 | // Imports a picker class according to the current theme. |
---|
| 18 | var dm = win.global._no_dojo_dm || lang.getObject("dojox.mobile", true); |
---|
| 19 | parentRequire([(dm.currentTheme === "android" || dm.currentTheme === "holodark" ? "./ValuePicker" : "./SpinWheel") + id], loaded); |
---|
| 20 | } |
---|
| 21 | }; |
---|
| 22 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.