marta

Function action()

function marta.action(block: ActionDeclaration)

Define an action.

Example:

action {
    id = "actionName",
    name = "Action name",
    apply = function(context)
        martax.alert("Hello, world!")
    end
}