-
Notifications
You must be signed in to change notification settings - Fork 14
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
Items/options rendering customization #13
Comments
I agree with you, however let me state two things here:
That being said, I'm afraid what you're proposing won't be easy. In another project called ember-leaflet, we're trying to use Ember Views for Leaflet popups (you can imagine the advantages). See issue here: gabesmed/ember-leaflet#30. I'll leave this open to collect people's ideas, and of course, PR are welcome. I'll keep an eye on the issue. |
I agree. I didn't mean that you should remove |
This should be very possible if not using handlebars.runtime.. maybe using |
Would that allow us to have template bindings to a context as well? Suggestions and PR's are very welcome! Thanks. |
@knownasilya, as stated in the referenced issue, this is not something easy to accomplish. Not until selectize accepts DOM elements from the render functions. |
Support for templates and views landed in master. Now you can use any of the properties View takes precedence over template, so if you do strange things like setting Keep in mind that this currently does not work in Ember 1.8.0. See this issue for more info: emberjs/ember.js#5534 |
Great ! Thanks :) |
Does this work in Ember 1.9+? I’m currently getting an exception when specifying
Ember v1.10.0, Ember-CLI v0.2.0 |
Ember dropped an important API that made this work. |
OK. Thanks for the update. |
Any update on this? |
I remind you that this repository is not maintained anymore, in favor of the ember-cli addon version (as stated in the README). |
1 similar comment
I remind you that this repository is not maintained anymore, in favor of the ember-cli addon version (as stated in the README). |
People are getting here from the link in the ember-cli version's readme, maybe that link should be updated. |
It would be great if we could pass a template name (or view class) to ember-selectize instead of
optionValuePath
andoptionLabelPath
to customize the way items/options are rendered.Selectize's
render
option offers a powerful way to customize display. I guess it is the easiest way to go but it would probably require rendering a view into a string. I don't know if ember allows that.The text was updated successfully, but these errors were encountered: