-
Beta Was this translation helpful? Give feedback.
Answered by
s-cork
Sep 8, 2023
Replies: 1 comment
-
Buttons are annoying in anvil. They have a container element around the main button element. We might want to make this the default (it's the default for the augment library) ie special case an anvil button. The current approach would be to pass the button dom node to the animate method. Something like. from anvil.js import get_dom_node
# target the button dom node
button_el = get_dom_node(self.button).firstElementChild
animate(button_el) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stenci
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Buttons are annoying in anvil. They have a container element around the main button element. We might want to make this the default (it's the default for the augment library) ie special case an anvil button.
The current approach would be to pass the button dom node to the animate method.
Something like.