functions

Type: Array of JSON objects
Required: No

"functions": [
   {
      "name": "customFunction",
      "displayName": "customFunction",
      "visible": true,
      "description": "This is a sample for a function that can be called.",
      "category": "Actions",
      "params": [],
      "type": null,
      "heritable": true,
      "searchTerms": []
   }
]

This property defines functions of the control that are independent of attributes. The functions can optionally have parameter values or a return value. Each function must have the same name in Source.js, otherwise an error message appears in the browser console and the function is not executed.

A JSON object for a function contains the following properties:

The following figure shows an example of two framework control functions in the Engineering, both of which have no return value and contain an optional parameter value function.

functions 1: