Setting up your Development Environment
Custom view development with the JavaScript API involves editing JavaScript, HTML, and CSS source code.
Although you can use a lightweight text editor to develop your view it is recommended that if you are working on any sizeable app you should use Xpress Workbench. This provides code formatting, code analysis and code completion. This can lead to fewer mistakes and cleaner code.
If you wish to use an alternative development environment, for example, WebStorm, you can set up code completion on the
Xpress Insight JavaScript API using the provided source code for the API in the following location:
<installdir>\insight\lib\javascript
For example, you can set up your app in WebStorm to use this as a library as follows:
- Go to the WebStorm application settings
- Open
- Click Add
- Name it XI JavaScript API and set Visibility to Global
- Click Add to attach directories
- Select <installdir>\insight\lib\javascript\insight-4.1
- Click OK
- Make sure the new library added to the list is Enabled