-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
Autocomplete refactor #283
Autocomplete refactor #283
Conversation
…s on full-text search and model argument provided as promise to paper-autocomplete
The original autocomplete (from angular material) doesn't support full-text search? |
My thoughts: @canufeel this PR looks good to me. @miguelcobain I am not sure I understand why this project is always limited by what Personally, I have used Ember Paper twice on projects and both times have had to add in full text search to "fix" the autocomplete control. Fix in quotes cause it is not a bug but definitely feels missing to me. I mean it boils down to these lines of text:
I get trying to emulate the work done there to be consistent but this feels like a mistake on their part that we are replicating. |
@brendanoh this is not true. The only thing we are somewhat limited is to angular material's styles. ember-paper can have the api it wants, and the functionality it wants, as long as it doesn't clash with angular-material's styles. This isn't certainly the case. I merely asked because it felt impossible that angular material didn't have this. I wasn't suggesting at all that we shouldn't have this. On the contrary, I think this is something very fundamental. Just trying to understand why we don't have this in the first place. |
Ahhhhhh @miguelcobain that makes so much more sense now... In Angular Material you write your own comparator which would allow you do it any way you please. CodePen of rewritten
Also, now that I think about it every other time I felt limited was due to Angular styles... Thanks! |
@canufeel can you add this to the changelog so I can merge this? |
@miguelcobain yeah, sure. |
Any idea when this will be merged? I see 2 other autocomplete related PR's as well. |
@miguelcobain Please suggest if any other changes should be made. |
This is refactored version of #199 which adds:
fullTextSearch
support for autocompleteEmber.ObjectProxy
objects to autocomplete model attribute on init or during usage.fullTextSearch
.Ember.String.fmt
deprecation by substituting it withEmber.String.loc