Is there a way to attach the {{action}}
of a component to the entire component template? ie the wrapper element that ember will put the component into? I don’t see such a way in the docs.
Use case:
I’m using Semantic UI as a front end UI library in an ember app. I have a collection, which I have created as a component. Each item in the collection is a separate sub-component. But here is where I hit a problem.
To retain cascading styles, the entire component must be a direct descendent of the parent. ie: .parent.collection > .child.item { .... }
I realize I can set tagName and classNames to make it the child styled, but how can I also make the entire component clickable? I don’t want to I nest the {{action}} into a wrapper in the template because the extra level of nested element affects the styling due to the s structure above and I don’t wish to re-write the classes.
?