dojo: create your own widget templates based on other widgets

If you create your own widget template, and if this template makes use of other widgets too, don’t forget to activate ‘widgetsInTemplate‘ option on the widget you are created.

dojo.declare(
 'myjs.MyClass',
 dijit._Widget,
 {
  templatePath: <path-to-your-template>,
widgetsInTemplate: true,
  ...
 }
);

sources

Post a Comment

Your email is never published nor shared. You're allow to say what you want...