I have a compound component managing a list of items.
I want to alter the style of the parent component based on the count of child elements (in this case, we have three windows:
- N < 11 :width 100, zoom 1
- N between 11 and 22 : width 200, zoom 1
- N > 22 : width 300, zoom .5
I'm open to altering the style tag (preferred) or altering the class tag, but I don't know how to do either. It should be mentioned that the style tag is also being used by another process, so whatever happens we need to not interfere with the existing value (which does not access the width or zoom descriptors)