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

data-value attribute reactive? #17

Open
mongoh opened this issue May 5, 2014 · 3 comments
Open

data-value attribute reactive? #17

mongoh opened this issue May 5, 2014 · 3 comments

Comments

@mongoh
Copy link

mongoh commented May 5, 2014

I have two browsers open and when I make changes to one, the template in the other reflects the change. However, the form element when engaged does not reflect the updated value...

I have the data-value set to a {{}}; although I am not sure if Meteor applies reactivity here?

@mizzao
Copy link
Collaborator

mizzao commented Jun 2, 2014

This is complicated. See http://stackoverflow.com/q/22867690/586086.

@davidworkman9 created https://github.com/davidworkman9/meteor-editable/ for this, although I haven't tried it out myself.

@davidworkman9
Copy link

As @mizzao said, I created Meteor-Editable for this very reason. X-editable was super simple pre-blaze, but now it is a lot more complicated to have it reactive. The good news with Meteor-Editable is things like select list options are now reactive as well, with x-editable and Spark you would have needed a Deps.autorun to accomplish that. In fact everything you pass to Meteor-Editable can be reactive. New types are also super simple to add. I haven't documented it yet but if you look at the source code you'll probably get the idea. I haven't added inline mode yet, but that will be coming sooner or later. Would take a pull request for it!

@mizzao
Copy link
Collaborator

mizzao commented Aug 5, 2014

Much easier implementation for 0.8.3 posted at http://stackoverflow.com/q/22867690/586086.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants