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

Custom filter and sorting #25

Open
C00per opened this issue Feb 28, 2016 · 3 comments
Open

Custom filter and sorting #25

C00per opened this issue Feb 28, 2016 · 3 comments
Labels

Comments

@C00per
Copy link

C00per commented Feb 28, 2016

Hi!

  1. Is it possible to add the custom filter and sorting capability for the array in the "options" parameter?
  2. Could you please explain how current filtering is working? It seems that used all fields for objects in the array in the "options" parameter, so objects without entered symbols are shown.
  3. Is it possible to highlight entered sybmols that used for filtering?
@indrimuska
Copy link
Owner

Hi @C00per.
At the moment filtering works with the native angular $filter service over the entire object. It would be very nice if users could be define a custom filtering function, are you interested in making a PR?

Regarding symbols highlighting, I don't have a solution to perform that action, since every user can define its own template for dropdown items. Maybe it can be done with a filter, but I'm not sure about that.

@C00per
Copy link
Author

C00per commented Mar 1, 2016

Hi @indrimuska.
I'm sorry, but I'm not enough qualified to make a PR (.

Custom filtering and sorting are useful features that allow use selector with complex objects. For now, I have to create the special array with simplified copies as a workaround.

But anyway angular-selector works as expected so I'm trying to migrate to it from buggy ui-selector.

@indrimuska
Copy link
Owner

Ok, maybe custom filtering function could be one of the next features :)

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

No branches or pull requests

2 participants