Skip to content

Inline JS Button Action

The inline JS action runs the code provided using the JS Engine plugin.

interface InlineJsButtonAction {
type: 'inlineJS';
code: string; // the code to run
}

Example

This button will log Hello World! to the console.

```meta-bind-button
style: primary
label: Greet the World
action:
type: inlineJS
code: "console.log('Hello World!');"
```