CustomJSAction

CustomActions. CustomJSAction

An action 'customJS' that can run a custom piece of javascript code on the current context, the function must be a function on the window object

Constructor

new CustomJSAction()

Source:
Example
//Runs window.myFunction
{
    "customJS": {
         "functionName": "myFunction"
     }
}

//Shorthand, runs window.myFunction
{
    "customJS": "myFunction"
}