meteor-x-editable-bootstrap icon indicating copy to clipboard operation
meteor-x-editable-bootstrap copied to clipboard

data-value attribute reactive?

Open mongoh opened this issue 10 years ago • 3 comments

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?

mongoh avatar May 05 '14 12:05 mongoh

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.

mizzao avatar Jun 02 '14 15:06 mizzao

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!

davidworkman9 avatar Jun 03 '14 13:06 davidworkman9

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

mizzao avatar Aug 05 '14 22:08 mizzao