UNPKG

dojox

Version:

Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.

23 lines (19 loc) 707 B
define([ "dojo/_base/lang", "dojo/_base/window" ], function(lang, win){ // module: // dojox/mobile/_PickerChooser return{ // summary: // This widget chooses a picker class according to the current theme. // Imports ValuePicker-based date/time picker when the current theme is "android". // Imports SpinWheel-based date/time picker otherwise. load: function (id, parentRequire, loaded){ // summary: // Imports a picker class according to the current theme. var dm = win.global._no_dojo_dm || lang.getObject("dojox.mobile", true); parentRequire([(dm.currentTheme === "android" || dm.currentTheme === "holodark" ? "./ValuePicker" : "./SpinWheel") + id], loaded); } }; });