# 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 a Dojo Application
Dojo application creation and launch demo

Copyright (c) 2006, 2007 IBM Corporation and others. All Rights Reserved.