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
First try at adding button support #64
Comments
Hi @delambo Tried to get my button groups going with the new handler support, first of all - genius done! The stickit source code is much easier to grasp. I have toyed with passing the event object to the getVal method, this way I can figure out which of the buttons that was actually clicked. This is partially related to #62 because the first $el is used, but console logging $el.length shows that it has all the correct buttons. I just cant figure out which one is the one being clicked without having access to the event object. What do you think should that be figured out on a higher level or in handler level? |
I like the idea of passing the event into You might also need to set some data into the dom, marking the current button/value to get the value when no event exists. |
Yeah this was what I realized as well. Haven't come up with something useful to make a pull request of yet. |
Something stinks about this - it shouldn't be hard to set this up. The only reason why |
…parameter to 'getVal'; discussed in #64
I think my last push to master should help. Check it out. |
Here is my submission to the stickit handlers store :) Thanks for all the help @delambo
|
Hi
I need help with this one, if you want button support that is :)
https://github.com/andriijas/backbone.stickit/tree/buttons
The test cases I added fail, which implies there is more work to do on my changes.
For test case 1 single buttons I dont know whats wrong - the options.bindKey != bindKey check fail
For test case 2 multiple buttons I think it has to do with #62, the value of the first button is used, not the clicked one.
Thanks
The text was updated successfully, but these errors were encountered: