angular-xeditable
angular-xeditable copied to clipboard
In edit mode, How to dynamically update the data.
When a row is in edit mode, when user changes one input field data in the other field has to be changed. For Eg: When use changes the quantity then the price field has to be changed automatically.
I am looking for a similar scenario, if the user has selected X from the list of options, then display XYZ editable fields etc
At the moment they need to save the form, then edit again for the ng-show etc to work on those fields
Stuck in same requirement where I am trying to clear an editable-text field if selection is changed in an editable-select.
All these editables are enclosed inside a form element which got Save/Cancel button.
I am able to clear the text field by doing something like (in controller): element.$form.txtField.$setViewValue element.$form.txtField.$render On Cancel the form value get reverted back to original.
But on Save it do not save the cleared value for text field and displays old value. Form goes in non edit mode.
Can you provide a link to a plunker or jsfiddle?
@Pabba-Varun @semaja2 @cp15dec see if this fiddle helps you