Developing Web-plugins
Last updated
Last updated
Field | Description |
---|---|
Parameters/JS libraries | This is the URL to a JavaScript file that is loaded on your page. For example, jQuery library, graph library, and others. |
General/shared parameters | These parameters are available in scripts and are filled in only during plugin installation. |
Web-components/step/Initialize | Initialize script: This code runs with the first page load. You can create or modify the DOM, display loading messages, and more. |
Web-components/step/Update | Update script: This script runs when all data is loaded, and the DOM is fully rendered. |
Add the plugin to your application. To do this, go to the "Status and Actions" section and enter your app's system name into the form.
The image above is an example: I added my application 'evp,' and now I can see my plugin in my app!
2. Install your plugin in your app.
3. Insert your plugin into your web page for debugging.
Now you are ready to write your first plugin:
Insert the following code to initialize the block:
After refreshing the page, you should see the following result.
Insert the following code into the update section:
Now, take a look at the image:
You can run any JavaScript code in the update section, and you also have access to variables and parameters. For example, if you have a component parameter named "test" and you've set its value as "World," you can access and use it within your JavaScript code in the update section.
and if you change the script:
you will see parameter on the page.