reactive-table icon indicating copy to clipboard operation
reactive-table copied to clipboard

inline editing

Open aslagle opened this issue 11 years ago • 6 comments
trafficstars

aslagle avatar Feb 26 '14 16:02 aslagle

One option is to use the fn part of fields settings and wrap data inside a elements with id's, and use xeditable to make inline/popup editing possible

zimme avatar Apr 14 '14 10:04 zimme

I have done this, I added the following meteor packages: meteor add natestrauser:x-editable-bootstrap meteor add workman:x-editable-reactive-template The first is the x-editable library. The second is a wrapper to make it work as a template. Then add to html: <template name="authorCell> {{> xEditable type="text" success=onSuccess placement="right" placeholder="Enter value..." value=this.author data-emptytext="Click to add..."}} Then add this to JS: Template.cellEditable.helpers({ onSuccess: function () { var id = this._id; return function (res, val) { Books.update({ _id: id }, { $set: { author: val } }); } } });

jonlachlan avatar Dec 18 '14 05:12 jonlachlan

Is there any solution for Semantic UI?

cramrov avatar Mar 21 '15 17:03 cramrov

@jonlachlan you said "then add to html:" but your message cut off. formatting?

wizonesolutions avatar Jul 25 '15 22:07 wizonesolutions

@jonlachlan any chance to get the html snippet added here to your workaround? it's cut off above. thanks.

funston avatar Mar 07 '16 23:03 funston

@jonlachlan please provide us with the details on how did you manage to make editable-reactive-template work with reactive-table. I've been stuck at this for days so please help

MJO9 avatar Sep 13 '16 22:09 MJO9