Opened 12 years ago

Closed 10 years ago

#9970 closed enhancement (wontfix)


Reported by: Les Owned by:
Priority: low Milestone: 2.0
Component: Dijit Version: 1.3.2
Keywords: dijit._TemplatedWidget Cc:
Blocked By: Blocking:


I suggest adding the following line in _Templated.js:

dojo.declare("dijit._TemplatedWidget", [dijit._Widget, dijit._Templated]);

Here's how you would declare a templated widget:

dojo.declare("MyWidgetNew", dijit._TemplatedWidget, {
   templateString: "<div>hello world</div>"

The above format is shorter and easier compared the the current one:

dojo.declare("MyWidget", [dijit._Widget, dijit._Templated], {
   templateString: "<div>hello world</div>"

Change History (4)

comment:1 Changed 12 years ago by bill

Milestone: tbd1.5

Well, it would make it easier for widgets that just mix in _Widget and _Templated, although it wouldn't help (for example) for widgets that mixin ContentPane and _Templated. We already have _FormWidget for all the form widgets to extend, so it doesn't help there.

Does seem like a lot of places just mix in those two classes.

comment:2 Changed 12 years ago by bill

Milestone: 1.52.0

comment:3 Changed 11 years ago by the_drow

I can make it happen if you wish bill.

comment:4 Changed 10 years ago by bill

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.