Run JavaScript File
The run JavaScript file action runs a JavaScript file.
The button configuration is available as a read only variable in the script as context.buttonConfig
.
Aditional information about the button is available in the context.buttonContext
object.
See Button Context for more information.
The args is passed to the script as context.args
.
Example
With the following someScript.js
file in the vault root.
You should see the string Hello Meta Bind User!
printed to the console, when you click the button.