Skip to content
Discussion options

You must be logged in to vote

Without custom components you're not going to be able to respond to even handlers with a call to some javascript code. The only thing I can think of to help this (and I'm not sure it would allow you to do what you need) would be to create a script parameter which gets evaled on the initial render:

idom.html.button("click me", script="node => { node.onclick = () => console.log('clicked!'); }")

Replies: 5 comments 12 replies

Comment options

Archmonger
Nov 6, 2021
Maintainer Author

You must be logged in to vote
0 replies
Comment options

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

Archmonger Nov 19, 2021
Maintainer Author

Answer selected by Archmonger
Comment options

You must be logged in to vote
7 replies
@Archmonger
Comment options

Archmonger Nov 14, 2021
Maintainer Author

@Archmonger
Comment options

Archmonger Nov 14, 2021
Maintainer Author

@Archmonger
Comment options

Archmonger Nov 14, 2021
Maintainer Author

@rmorshea
Comment options

@Archmonger
Comment options

Archmonger Nov 16, 2021
Maintainer Author

Comment options

You must be logged in to vote
4 replies
@rmorshea
Comment options

@Archmonger
Comment options

Archmonger Nov 20, 2021
Maintainer Author

@varun-s22
Comment options

@Archmonger
Comment options

Archmonger Jun 27, 2023
Maintainer Author

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
Labels
None yet
3 participants