Skip to content
Discussion options

You must be logged in to vote

Using expressions in <script> tags wouldn't work, because by the time Mavo resolves the expressions, the browser has already tried to execute the script.

However, you can define global functions in JS, and then call them in Mavo expressions, which is typically the easiest way to pass property data to JS. HTML attribute event handlers (e.g. onclick) also work.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by GalinhaLX
Comment options

You must be logged in to vote
1 reply
@DmitrySharabin
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants