Opened 6 years ago

Closed 3 years ago

#16301 closed task (fixed)

Split dojox/form/RangeSlider into individual modules

Reported by: Nick Fenwick Owned by: dante
Priority: undecided Milestone: 1.10
Component: DojoX Form Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:

Description

Because RangeSlider?.js contains many declare() statements like this:

	declare("dojox.form.HorizontalRangeSlider", [HorizontalSlider, RangeSliderMixin], {
		// summary:
		//		A form widget that allows one to select a range with two horizontally draggable images
		templateString: hTemplate
	});

One cannot require(["dojox/form/HorizontalRangeSlider"]) and one cannot do data-dojo-type="dojox/form/HorizontalRangeSlider" in ones markup.

It seems these need to be split up.

I attach a test file which produces the following errors:

Uncaught Error: dijit._WidgetsInTemplateMixin: parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin.   Must pre-load all supporting widgets before instantiation. _WidgetsInTemplateMixin.js:42
GET http://neekfenwick.dyndns.org/testapp/resources/dojo/dojox/form/HorizontalRangeSlider.js 404 (Not Found) 

I cannot find a ticket that currently encompasses this work, feel free to close this as duplicate if one exists.

Attachments (1)

horizontalrangeslider_problem.html (1.0 KB) - added by Nick Fenwick 6 years ago.
Example of trying to use slash notation in _WidgetsInTemplate template failing.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by Nick Fenwick

Example of trying to use slash notation in _WidgetsInTemplate template failing.

comment:1 Changed 6 years ago by Nick Fenwick

By the way, using data-dojo-type="dojox.form.HorizontalRangeSlider" works, of course, but that syntax will be obsolete before too long.

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.10
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.