marta

Function action()

fun marta.action(block: ActionDeclaration)

Define an action.

Example:

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