Hi Guys,

We would like to use CollapsibleNavigationSectionRenderer in our
application - however I have found case where there is problem with styling
some items in current implementation.

In TourDeJewel we have item called "No SubMenu" - This particular item I
would like to behave the same as any other item if it would be non
collapsible type of renderer.

If item has some children we can add class to "Navigation" component by
overriding childNavClassName [1] , but how to styling "No SubMenu" ?

If there is not children in HTML we have following structure [2] and custom
class which make my items looks as I wanted to called navIconLinkItemRenderer
.

Analysis:
First "nav"  has my class  navIconLinkItemRenderer
Third "nav" has my class cause I have added it to  childNavClassName

Second "nav" doesn't have my class, cause there is not option to add it or
actually this is not fully "Navigation" type of component. You are not able
to actually select it, truly click it and so on.

Thoughts on that ?

I hope you will understand my description.

[1]
https://github.com/apache/royale-asjs/blob/3ee6f24eb7977c054b480ecea2c471dab017fadf/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/CollapsibleNavigationSectionRenderer.as#L174
 [2] https://ibb.co/HGn0s3X

Thanks,
-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Reply via email to