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

can-EVENT arguments #1219

Closed
justinbmeyer opened this Issue Aug 26, 2014 · 6 comments

Comments

Projects
None yet
4 participants
@justinbmeyer
Contributor

justinbmeyer commented Aug 26, 2014

VOTE HERE

It should be possible to pass can-EVENT bindings arguments from the scope like:

<li can-click="{doSomething key1 ../key2 "foo" @element @event}">

Pull request from @zkat : #1357

@justinbmeyer justinbmeyer added this to the 2.2.0 milestone Aug 26, 2014

@cherifGsoul

This comment has been minimized.

Show comment
Hide comment
@cherifGsoul

cherifGsoul Aug 26, 2014

Member

this could be implemented with helplers?

Member

cherifGsoul commented Aug 26, 2014

this could be implemented with helplers?

@justinbmeyer

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Aug 26, 2014

Contributor

I'm not sure what you mean.

Contributor

justinbmeyer commented Aug 26, 2014

I'm not sure what you mean.

@justinbmeyer

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Aug 26, 2014

Contributor

It should make use of the same mustache-helper parsing logic. But that logic needs to be made more easily available to view bindings.

Contributor

justinbmeyer commented Aug 26, 2014

It should make use of the same mustache-helper parsing logic. But that logic needs to be made more easily available to view bindings.

@whitecolor

This comment has been minimized.

Show comment
Hide comment
@whitecolor

whitecolor Aug 28, 2014

Contributor

Yes that would VERY useful, currently one have to change context of the element to pass particular data to event handler.

Contributor

whitecolor commented Aug 28, 2014

Yes that would VERY useful, currently one have to change context of the element to pass particular data to event handler.

@cherifGsoul

This comment has been minimized.

Show comment
Hide comment
@cherifGsoul

cherifGsoul Oct 28, 2014

Member

@justinbmeyer Can you give more details on this?
I dont understand how to pass arguments?
key 1 key2 represent what? does the can-EVENT view/binding will be affected or remain the same and add this as a plugin?

Member

cherifGsoul commented Oct 28, 2014

@justinbmeyer Can you give more details on this?
I dont understand how to pass arguments?
key 1 key2 represent what? does the can-EVENT view/binding will be affected or remain the same and add this as a plugin?

@justinbmeyer

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Oct 28, 2014

Contributor

can-EVENT will be the same if you don't specify arguments.

key1 and key2 represent a key in the scope. http://canjs.com/docs/can.mustache.key.html

Contributor

justinbmeyer commented Oct 28, 2014

can-EVENT will be the same if you don't specify arguments.

key1 and key2 represent a key in the scope. http://canjs.com/docs/can.mustache.key.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment