functions

MType: 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 diagram shows an example of two framework control functions in engineering, neither of which has a return value. A function contains optional parameter values.

functions 1: