angular-xeditable icon indicating copy to clipboard operation
angular-xeditable copied to clipboard

In edit mode, How to dynamically update the data.

Open Pabba-Varun opened this issue 9 years ago • 4 comments
trafficstars

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.

Pabba-Varun avatar Mar 11 '16 11:03 Pabba-Varun

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

semaja2 avatar Aug 03 '16 03:08 semaja2

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.

cp15dec avatar Feb 10 '17 13:02 cp15dec

Can you provide a link to a plunker or jsfiddle?

ckosloski avatar Feb 10 '17 14:02 ckosloski

@Pabba-Varun @semaja2 @cp15dec see if this fiddle helps you

ckosloski avatar Jun 15 '17 15:06 ckosloski