Creating Dojo classes
You can add custom Dojo classes to use in Dojo widgets.
Procedure
- In the Enterprise Explorer view, right-click the WebContent folder in your web project and select ..
- In the Dojo Class field, enter the name of your Dojo class.
- In the Module Name field, specify a module name.
- In the Source Folder field, specify a folder for the class.
- In the Supertypes field, specify any supertypes for the Dojo class.
- Click Customize Dojo Class template to control the informational comments that are added to the class source. The Templates preferences dialog opens. Clear the check boxes of the comments that you do not want displayed in your class source. Click OK.
- Click Finish. A JavaScript file is created with dojo.provide and dojo.declare statements. Content assist is available.