angular-form-for
angular-form-for copied to clipboard
Formatting - Select-field
It would be great if we could format the displayed field in a select field. Basic angular ng-options allows you to do this -- ng-options="type.id as (type.id + ' ' + type.someDesc) for type in vm.someList"> -- Forgive me if you can and I'm not seeing this. Also, being able to use filter options in a select would be awesome too, ie, order by, etc.
my suggestion would be to extract the options list into an own directive, that you can override if wanted. I've done so for a list with an indicator for "... more results" once. For that i had to override the whole TypeAheadField directive altogether.
ngSelect
has given me an incredible amount of trouble over the past few months so I'm very reluctant to mess with anything that touches it or ngOptions
. (At least a dozen bugs have been filed for select-related issues and edge-cases.)
I would review a PR if you'd like to create one, but I can't promise that it will get merged. :/