Opened 11 years ago
Closed 9 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 11 years ago by
Milestone: | tbd → 1.5 |
---|
comment:2 Changed 11 years ago by
Milestone: | 1.5 → 2.0 |
---|
comment:4 Changed 9 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.