Last change
on this file since 483 was
483,
checked in by hendrikvanantwerpen, 11 years ago
|
Added Dojo 1.9.3 release.
|
File size:
763 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "require", |
---|
3 | "dojo/_base/declare", |
---|
4 | "dijit/_WidgetBase", |
---|
5 | "dijit/_TemplatedMixin", |
---|
6 | "dijit/_WidgetsInTemplateMixin", |
---|
7 | "./TestWidget" |
---|
8 | ], function(require, declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin){ |
---|
9 | |
---|
10 | // This module requires utilises a relative MID in the template. Because of the synchronous nature of the widget |
---|
11 | // lifecycle, you need to require in any modules in the template into the parent module (as auto-require will not |
---|
12 | // work) as well as require in the context require and pass it as part of the declare. |
---|
13 | return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], { |
---|
14 | templateString: '<div><div data-dojo-type="./TestWidget" data-dojo-attach-point="fooNode"></div></div>', |
---|
15 | contextRequire: require |
---|
16 | }); |
---|
17 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.