Opened 10 years ago

Closed 8 years ago

#9970 closed enhancement (wontfix)

dijit._TemplatedWidget

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

Description

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 10 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 9 years ago by bill

Milestone: 1.52.0

comment:3 Changed 9 years ago by the_drow

I can make it happen if you wish bill.

comment:4 Changed 8 years ago by bill

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