We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
An easy and lazy solution for click-event-binding.
Define some actions:
action.add({ 'my-action': function () { //do something... }, ... })
Create an element like this:
<button data-action="my-action">btn</button> <!-- or --> <a href="#" data-action="my-action">link</a> <!-- or --> <a href="#my-action" data-action>link</a>
You've done everything.
Clicking the element will trigger the action you defined.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
Step 1
Define some actions:
Step 2
Create an element like this:
Step 3
You've done everything.
Clicking the element will trigger the action you defined.
The text was updated successfully, but these errors were encountered: