Create Dojo-enabled MobileFirst projects
We can create Dojo-enabled MobileFirst projects that hold all of the resources created and used when you develop a Dojo mobile application.
- In the main menu, click File > New > MobileFirst Project to open the New MobileFirst Project wizard.
- In the Name field, enter a name for the new project.
- From the list of project templates, click one of the following templates to generate an application for the project. and then click Next.
Template Description Hybrid Application To create a MobileFirst project with an initial hybrid application. Inner Application To create a MobileFirst project with an initial inner application and point to a built shell component. Native API To create a MobileFirst project with a Native API. Shell Component To create a MobileFirst project with an initial shell component application.
- In the Application name field, enter a name for the new application.
- Click Configure javaScript Libraries.
- In the Dojo installation section, select Add Dojo Toolkit to add the Dojo facet and Dojo support to the application. When we build a mobile web application, Dojo is included to create the native application, such as an iPhone or Android application.
- Specify the Dojo library project to use in your new MobileFirst project:
Option Description Select an existing Dojo library project From the list of available Dojo library projects, select the library to use in the project. For example, dojoLib. Create a Dojo library project
- Click New Dojo Library to open the Dojo Library Setup wizard.
- In the Name field, enter a name for your new Dojo library project.
- Specify the version of Dojo to install.
- Configure how the Dojo library project accesses the Dojo Toolkit and which version of the toolkit to use:
- Click Provided to select a Dojo Toolkit provided with the product.
- Click On Disk and then choose one of the following options:
- Click Archive File to select an archive file of a compressed Dojo distribution. When we click Finish, the contents of the archive file are automatically extracted into your project.
- Click Folder to browse to the root Dojo folder in another project in the workspace.
- Expand the Select the Dojo components to be included in the project section and select the Dojo components to include in the project.
- Click Finish. The new project is now displayed as an option in the list of available Dojo library projects.
- Click Finish. Both the project.and the Dojo library project are created.
Parent topic: Use JavaScript toolkits for the user interface