在Dojo Date Picker中禁用未来日期? [英] Disable future dates in Dojo Date Picker?
本文介绍了在Dojo Date Picker中禁用未来日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< input dojoType =dijit.form.DateTextBox />
解决方案
dijit。 byId('textBoxID')。constraints.max = new Date();
我不是dojo的专家,但我认为应该这样做。如果你今天也不允许,从新的日期减去1天。
I want to disable future dates in dojo date Picker .
<input dojoType="dijit.form.DateTextBox"/>
解决方案
dijit.byId('textBoxID').constraints.max = new Date();
I'm no dojo expert, but I think that should do it. Subtract 1 day from the new date if you want to disallow today as well.
这篇关于在Dojo Date Picker中禁用未来日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文