Component subclassing support?
See original GitHub issueHi there! Our team just decided to start using ember-component-css (which has been great so far!) and in the process of cramming scss files into our pods, I ran across a situation where we have two components that both subclass a base-widget
component. The children widgets share some styling so I was like, “let me try cramming all those shared styles into the base-css
pod”!
Unsurprisingly, it didn’t work because the base-widget
styles assume anticipate a .base-widget-blah
class applied to the component elements, but instead all they have is the .child-widget-blah
class.
Right now, I’ve just bailed on using pod-bound styling for the shared styling but I’d love to see this case supported in the future!
Issue Analytics
- State:
- Created 8 years ago
- Reactions:8
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Component Subclasses - Oracle Help Center
The Component class allows the value to be any Java object. The subclass must coerce the value to a particular type when it...
Read more >Deriving Subclasses to Create New Components | ICS MotifZone
This section demonstrates how to use the VkComponent class to create new components. It includes guidelines to follow when creating new components, ...
Read more >NH-943 - Add Support For Subclassing Of Components #963
Domain wise I can solve this quite simple as I'd want to have an Account class mapped to the account table, with the...
Read more >How To Extend Classes with Angular Component Inheritance
Learn how to use the power of inheritance to extend your Angular components with common functionality.
Read more >Name three Component subclasses that support painting.
Name three Component subclasses that support painting. ... The Canvas, Frame, Panel, and Applet classes support painting. 5 5. Surya Bikram ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this is possible to do in the current system, though it is kind of clunky, and would be nice if it was streamlined. You can, however, do something like…
This will add the namespaces class to the component, as well as still having its own generated namespace class.
ahh… ok cool. no. I get ya. sometimes you would want to use a shared template or something and just override some behavior on the component.