///_hyperscript

The trigger Command

Syntax

trigger <event-name>[(<named-arg-list)]

Description

The trigger is similar to the send command but triggers the event on the current element.
Arguments can optionally provided in a named argument list and will be passed in the event.detail object.

Examples

<div _="on click trigger doIt(answer:42) end
        on doIt(answer) log 'The answer is ' + answer end">Click Me!</div>