javascript - dropDownDefaultValue in dijit DateTextBox broken? -
as documentation of dijit datetextbox says want set date user sees when opens dropdown. don't want put date in value property of datetextbox. in application date optional when it's used other fields need filled, too.
the value want show in dropdowndefaultvalue depends on other dates. if other date in 2006 set range 2006 user unable select date after 2006. without selected default date realy annoying cause it's today.
so here's fiddle tried set dropdowndefaultvalue fiddle<div data-dojo-type="dijit.form.datetextbox" data-dojo-props="dropdowndefaultvalue:'2010-10-12'"></div>
i'm using dijit/datetextbox documented here documentation datetextbox
any ideas why it's not working?
dropdowndefaultvalue
supposed object, not string.
you have that:
<div data-dojo-type="dijit.form.datetextbox" data-dojo-props="dropdowndefaultvalue: new date(2012,10,12)"></div>
Comments
Post a Comment