vitalets / angular-xeditable

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

How to be notified when user selects from an editableSelect (before Save is clicked) #329

Open dlwhiteman opened 9 years ago

dlwhiteman commented 9 years ago

I am using angular xeditable in "whole form" editing mode. I have an editableSelect that has a set of predefined values, and at the bottom it has a value "Custom...". What I would like to do is cause a function to be called in my controller when the user has changed the value of the select element, so I can prompt for the custom value. My workaround for now is undesirable, because the earliest point I know of that I can get notified after a change is onbeforesave, and if I have a table with 12 rows in it and all of them have Custom... selected, I don't want 12 dialogs popping up. Does my question and request make sense?

dlwhiteman commented 9 years ago

I had to create a custom directive that wrapped a