Creating custom Dojo widgets

You can create custom Dojo widgets in the New Dojo Widget wizard.

About this task

Dojo widgets are composed of three files:
  • An HTML file
  • A JavaScript file
  • A CSS file
The New Dojo Widget wizard creates these files for you. To create a custom Dojo widget:

Procedure

  1. In Enterprise Explorer, right-click your Dojo enabled web project and then select New > Dojo Widget. Click Next. The New Dojo Widget wizard opens.
  2. In the Widget Name field, type the name of the custom widget.
  3. In the Supertypes field, type the name of the JavaScript types that the new widget extends. By default, dijit._Widget and dijit._Templated are present.
  4. Click Finish.

Results

Your custom widget and the corresponding template and theme is created in your web project. The custom widget file opens in the editor for you to customize. The custom widget is available in the palette in the Other Dojo Widgets drawer.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tcrtcustomdojolib.html