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

missing SortField option #34

Closed
popovevgeny opened this issue Nov 20, 2014 · 2 comments
Closed

missing SortField option #34

popovevgeny opened this issue Nov 20, 2014 · 2 comments
Labels

Comments

@popovevgeny
Copy link

Hi!

Is it possible to add sortField option? There is a little bag in Google Chrome selectize/selectize.js#198

@miguelcobain
Copy link
Owner

Hi.

Right now you can override the options that Ember.Selectize passes to Selectize.

Ember.Selectize.reopen({
  selectizeOptions:function(){
    var options = this._super();
    options.sortField = 'label';
    return options;
  }.property()
});

You can also subclass Ember.Selectize if you don't wish to do this for all instances.

Then use ember-selectize normally.

@popovevgeny
Copy link
Author

thanks for quick answer!

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