-
Notifications
You must be signed in to change notification settings - Fork 75
Using a popover's contentViewClass with ember-cli #103
Comments
Also, it appears that there is no support for the 'content' key at all? |
Thanks for the post and for the workaround! Glad you were able to figure it out. Someone recently fixed this issue in our related ember-table project: Addepar/ember-table#200. I think we should do the same thing here instead of adding a workaround to the README. Do you agree? |
Just started using that workaround on my app for the select widget. Thanks! @azirbel From a quick first pass, that workaround code would work fine here as well. Using a |
Could please somebody provide more complete workaround example? I'm now use |
Ok, I got it.
In my case, I replaced |
Hi there,
As it is currently written, ember-widgets resolves views in a way that isn't very compatible with ember-cli:
from popover-link-popover.hbs:
from popover_link.coffee:
I couldn't figure out any way to resolve an ember-cli view via Ember.get contentViewClass
But, there is a very easy workaround...here is an example:
The key thing to notice is that I am overriding the computed property and just telling the component explicitly where to find the view using {{view 'custom-popover-content'}}
If the maintainers would like, I could add this to the README as a gotcha...
The text was updated successfully, but these errors were encountered: