Angular-Datatables + Angular-xeditable:可编辑行已取消 [英] Angular-Datatables + Angular-xeditable : editable row canceled
问题描述
当合并angular-datatables和angular-xeditable时,添加新行会取消可编辑行.
这是
(2) 将第一行和第三行编辑为状态"status4".
(3) 按添加行
.
在(3)
上,编辑被取消并且状态恢复为"status1".我希望第1行和第3行都保持编辑状态,状态保持为"status4".如果没有angular-datatables,它可以作为此jsfiddle 的希望,但我想与数据表一起使用.
我该如何解决?
我在Angular中有一个DataTables表,我需要使其内联可编辑-此CellEdit插件及其基本的初始化代码非常吸引人!不确定是否支持添加新行和删除行.
希望这会有所帮助!
When combining angular-datatables and angular-xeditable, editable row is canceled when adding a new row.
This is the jsfiddle. Sample operation is as follows.
(1) This is initial state.
(2) editing first and third rows to status "status4".
(3) Press Add row
.
On (3)
, editting is canceled and status is reverted to "status1". My hope is both row1 and row3 are kept editting and status stays "status4". If without angular-datatables, it works as my hope as this jsfiddle, but I would like to use with datatables.
How can I fix?
I had a DataTables table in Angular that I needed to make inline editable - this CellEdit plugin and its basic initialization code worked like a charm! Not sure if it supports adding new rows and deleting rows, though.
Hope this helps!
这篇关于Angular-Datatables + Angular-xeditable:可编辑行已取消的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!