Creating a Custom Dojo Widget

To create a new custom Dojo widget, select File > New > Other > Dojo Custom Widget. The Dojo Widget Wizard consists of one wizard page (shown below).

All inputs on this page are required. The Name will be the name for the new widget. The Project input defines which workspace project the new application will be created in. The Location will be the directory within the project where the new widget files will be placed. In addition, the Add Sample Content checkbox can be used to specify whether or not there should be sample content added to the JavaScript file that is generated. Selecting the Finish button will generate the new Dojo widget template files. The widget files created will consist of a JavaScript file, used to provide the logic of the widget, an HTML file, used to invoke the widget, and a CSS file, used to style the widget.

Related tasks
Creating an AJAX enabled Project
Creating a Dojo Application
Launching an AJAX Application
Dojo application creation and launch demo


(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM is a registered trademark of IBM. All other trademarks are the property of their respective owners.