Skip to end of metadata
Go to start of metadata

The Steps to a Custom Widget from Scratch

Creating a custom widget from scratch requires you to write JavaScript code to perform the following steps:

  • Add a base widget using the pui.widgets.add() API
  • Add the necessary custom properties using the pui.addCustomProperty() API
  • Add an entry to the Widgets Toolbox using the pui.toolbox.add() API

For more information on these API functions, refer to the Widgets Development API section of the documentation.

All JavaScript code should be saved into an external file that is placed in the /www/profoundui/htdocs/profoundui/userdata/custom/widgets IFS directory.

Example: Google Maps Widget

In this example, a custom Google Maps widget is created.

Labels
  • No labels