Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting - Select-field #166

Open
sgrady opened this issue Oct 6, 2015 · 2 comments
Open

Formatting - Select-field #166

sgrady opened this issue Oct 6, 2015 · 2 comments

Comments

@sgrady
Copy link

sgrady commented Oct 6, 2015

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.

@hutzelknecht
Copy link

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.

@bvaughn
Copy link
Owner

bvaughn commented Oct 12, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants