Angular-xeditable-可编辑行-更改值 [英] Angular-xeditable - Editable Row - Change Value
问题描述
当未选中复选框时,我尝试将选择控件的值设置为null.
I try to set a value of a select control to null when a checkbox is unchecked.
我尝试使用onbeforesave和onaftersave,但是我想动态地进行操作,所以我使用了e-ng-change.如果我取消更改但我无法访问控制值,我也不想更改该值.
I try with onbeforesave and onaftersave but i want to do it dynamicly , so i used e-ng-change. I want also to not change the value if i cancel my changes but i can't access to the control value.
您可以在此处查看代码: http://jsfiddle.net/NfPcH/2833/
You can see the code here : http://jsfiddle.net/NfPcH/2833/
在正常形式下,我会像这样设置值,但是在这里我没有任何已知的访问权限
In normal forms, i set the value like this but here i don't have any know access
sco.editableForm.name.$setViewValue("1234")
此致
马克
推荐答案
我找到了在可编辑模式下设置值的问题的解决方案:
I found a solution of my problem to set value in editable mode :
sco.rowform.$ editables [2] .scope.$ data = null;
sco.rowform.$editables[2].scope.$data = null;
这篇关于Angular-xeditable-可编辑行-更改值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!