angular-form-for icon indicating copy to clipboard operation
angular-form-for copied to clipboard

Formatting - Select-field

Open sgrady opened this issue 9 years ago • 2 comments

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.

sgrady avatar Oct 06 '15 15:10 sgrady

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.

hutzelknecht avatar Oct 08 '15 11:10 hutzelknecht

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. :/

bvaughn avatar Oct 12 '15 02:10 bvaughn