vitalets / angular-xeditable

Edit in place for AngularJS
http://vitalets.github.io/angular-xeditable
MIT License
1.91k stars 402 forks source link

Allow only one row to edit at time #727

Open shrikantthorve opened 6 years ago

shrikantthorve commented 6 years ago

If user clicks on edit on table row then other rows cannot be edit. Once user clicks on save or cancel then only we can allow user to edit other user.

ckosloski commented 6 years ago

Couldn't you do this with a scope variable? Set the variable on edit to true and have edit buttons disabled if the scope variable is set. Set the variable to false when cancelling or saving to enable edit again.