UNPKG

dijit

Version:

Dijit provides a complete collection of user interface controls based on Dojo, giving you the power to create web applications that are highly optimized for usability, performance, internationalization, accessibility, but above all deliver an incredible u

17 lines (16 loc) 763 B
define([ "require", "dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "./TestWidget" ], function(require, declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin){ // This module requires utilises a relative MID in the template. Because of the synchronous nature of the widget // lifecycle, you need to require in any modules in the template into the parent module (as auto-require will not // work) as well as require in the context require and pass it as part of the declare. return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], { templateString: '<div><div data-dojo-type="./TestWidget" data-dojo-attach-point="fooNode"></div></div>', contextRequire: require }); });