Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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 5 years ago by Carmelo Woodgett

I think it should be a link to the constraints property for dijit/form/ValidationTextBox.

comment:2 Changed 5 years ago by bill

Milestone: tbd1.10.5
Owner: set to bill
Status: newassigned

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 5 years ago by Bill Keese <bill@…>

Resolution: fixed
Status: assignedclosed

In 0c999e2475572282121530efce32d1330730f8c0/dijit:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:4 Changed 5 years ago by Bill Keese <bill@…>

In 44dc7823f5297b6bca889d89ad04a27c1988a812/dijit:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 
Note: See TracTickets for help on using tickets.