Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elm(ish) onClick Event/Function Attribute #58

Closed
1 task done
nelsonic opened this issue Aug 10, 2018 · 1 comment
Closed
1 task done

Elm(ish) onClick Event/Function Attribute #58

nelsonic opened this issue Aug 10, 2018 · 1 comment

Comments

@nelsonic
Copy link
Member

nelsonic commented Aug 10, 2018

In order to simplify event listeners in our TEA example apps,
I'm thinking that adding an onclick attribute to a given node and passing in the signal(action)
is the simplest way of keeping the view declarative.

This will be useful for both "delete" a todo item (which is a button) and incrementing a counter.

  • add_attribute([function]) >> onclick=signal(action)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant