#18332 closed defect (fixed)
Incorrect link in API documentation for dijit/form/TimeTextBox#constraints
Reported by: | Carmelo Woodgett | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.10.5 |
Component: | Documentation | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
From feedback given:
Can't find dijit/form/TimeTextBox's constraints property description. It refers me to inexisting link http://dojotoolkit.org/api/1.9/dijit/form/TimeTextBox#constraints
Change History (4)
comment:1 Changed 6 years ago by
comment:2 Changed 6 years ago by
Milestone: | tbd → 1.10.5 |
---|---|
Owner: | set to bill |
Status: | new → assigned |
Hmm, well TimeTextBox?.js has this code:
/*===== var __Constraints = declare([_DateTimeTextBox.__Constraints, _TimePicker.__Constraints], { }); =====*/ return declare("dijit.form.TimeTextBox", _DateTimeTextBox, { ... /*===== // constraints: __Constraints constraints:{}, =====*/
So, the constraints object is different than . I guess having a local variable for __Constraints
doesn't work, since we can see the constraints for _DateTimeTextBox
, but they are declared using another pattern:
/*===== // constraints: _DateTimeTextBox.__Constraints // Despite the name, this parameter specifies both constraints on the input // (including starting/ending dates/times allowed) as well as // formatting options like whether the date is displayed in long (ex: December 25, 2005) // or short (ex: 12/25/2005) format. See `dijit/form/_DateTimeTextBox.__Constraints` for details. constraints: {}, ======*/ ... /*===== _DateTimeTextBox.__Constraints = declare([RangeBoundTextBox.__Constraints, locale.__FormatOptions], { // summary: // Specifies both the rules on valid/invalid values (first/last date/time allowed), // and also formatting options for how the date/time is displayed. // example: // To restrict to dates within 2004, displayed in a long format like "December 25, 2005": // | {min:'2004-01-01',max:'2004-12-31', formatLength:'long'} }); =====*/
comment:3 Changed 6 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
I think it should be a link to the constraints property for dijit/form/ValidationTextBox.