How to edit an HTML cell in AngularJS with X-editable

可紊 提交于 2019-12-24 06:36:02

问题


I am using angular js ng-repeat to bind data and I need batch edit (xeditable) now when I click edit button whole table will convert into editable but I want where user want to edit that particular cell will change into editable help refer: https://vitalets.github.io/angular-xeditable/#editable-table


回答1:


Looks like you may want to enable editing each row with a button like in this example:

https://vitalets.github.io/angular-xeditable/#editable-row

The example looks like it is creating a form for each row whereas you have only one form for the whole table.

If you do create a form for each row then you could also probably work out how to reference each row form and and trigger editing any way you want.



来源:https://stackoverflow.com/questions/42758399/how-to-edit-an-html-cell-in-angularjs-with-x-editable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!