-
Notifications
You must be signed in to change notification settings - Fork 80
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
optionTemplate and optionView not working anymore #29
Comments
I suggest using the function variants, currently rendering templates and views in an ad hoc manner is not exposed in a public API. |
well |
the last two paragraphs. But Even if you get it running all you get back is the html of the view and not any behaviours attached to the view, so it could be less efficient. you can try if you like. |
Well, there is another issue with function variants. Check this out. {{ember-selectize Now in controller, you have this: offn: function(i){
So far all is ok. As you can see content is binded to controller.items ... but if this items is changed and you come back second time, the functions do not pick up the added items. I tried making these properties dependent on items, but that means when a new item is added offn and itmf gets called and they do not have values for "i" parameter. What is wrong here? |
If only selectize could support DOM nodes... : selectize/selectize.js#617 |
New progress, maybe: emberjs/ember.js#5534 (comment) |
@miguelcobain seems like DOM nodes are now supported ? that pull-request is merged |
Looks like its still open: selectize/selectize.js#617 |
Is it possible to render component inside the itemFunction?
|
Rendering a component inside the itemFunction is exactly what I'm looking for, that or using itemView and passing a component, however that doesn't seem to be working right now. Any tips on rendering a component from itemFunction? |
The PR to allow DOM nodes was successfully merged yesterday 👍 |
I was watching that thread. Great news!
I accept PR's and can offer some guidance at ember's slack, if needed. |
Awesome news! Just curious, does this fully support component in the ember way? That is, with actions and computed properties? Or is it a one-time rendering of a component? |
Yes. Normal components. Bindings, actions, everything. |
optionTemplate
,itemTemplate
,optionCreateTemplate
,optgroupHeaderTemplate
,optgroupTemplate
,optionView
,itemView
,optionCreateView
,optgroupHeaderView
andoptgroupView
basically using the above-mentioned properties would cause ember throw an error saying
view.renderToBuffer() is no longer available
. we should find a workaround for this. Maybe get the string representation of rendered view this way:i can get it done if you want
The text was updated successfully, but these errors were encountered: