To implement a task, you have to develop the layout for the task by using the Ext-JS Designer. While developing the JS components of the layout ensure that you use the appropriate namespaces.
To set the UI configuration:
In the Module.xml editor go to the all-tasks node in the Tree View pane and add a new task to the tree by using the task attribute section.
The task attribute section contains the UI Configuration.
For example, you can specify GUI-based form controls or "widgets" such as grid control, tree control, toolbars, and so on. You can also specify application support features, such as model dialog boxes or interactive user-input validation prompts to display the controls within the Task Panel on the MainUI.
You can define the parameters that are used to pass the static information in the form of name-value pairs to the task at the time of initialization.
Click the Save button. All the uploaded *.js files are pushed into the top level [TASKNAME].js file.
To test an application layout in Junos Space, click Defining Space UI Icons in the Module.xml Editor.
To redeploy and retest an application in Junos Space, click Uninstall Junos Space Application.
To upload the HTML file:
Select the HTML Config option in the UI Configuration.
Click the Upload button to upload the HTML files.
The selected + HTML file is placed in the WEB Application/web/html location.
To delete a HTML file:
The Destroy method is a life-cycle method that is invoked by the framework when:
The user explicitly navigates away from the current task by clicking on some other task or workspace node.
The current task implicitly switches to another task.