Angular-xeditable - Editable Row - Change Value

和自甴很熟 提交于 2019-12-24 05:30:21

问题


I try to set a value of a select control to null when a checkbox is unchecked.

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.

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")

Regards,

Marc


回答1:


I found a solution of my problem to set value in editable mode :

sco.rowform.$editables[2].scope.$data = null;



来源:https://stackoverflow.com/questions/25419623/angular-xeditable-editable-row-change-value

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