I tried using the parameter in the emit block as part of a user-defined action, for example:
my_action = defaction(css_class) { emit <| $K(css_class).append("<span>!!</span>"); |> }
but this starts the console message "css_class not defined".
How to configure a parameter so that I can use it in the "emit" block?
source share