cancel
Showing results for 
Search instead for 
Did you mean: 

aikau styling of elements - descendants of the widget

npavlov
Confirmed Champ
Confirmed Champ

Hi!

How do I set the style for an item that is part of a widget? For example, I have a Tree widget, but i don't want that folders-icons, so i've tried just to set "display:none;" style for them:

{
    name: "alfresco/navigation/PathTree",
    config: {
        showRoot: true,
        rootLabel: "Repository",
        rootNode: "/app:company_home/st:sites",
        //style:"display:none;",
        publishTopic: "ALF_ITEM_SELECTED"
    }
}

While rendering my widget converts to html structure, but I can set style only for whole widget div. So i can't hide only icon-item. In browser (in developer tools) I can do that (item "1111" on attached image), but how to do that through model? Is it real?

1 ACCEPTED ANSWER

npavlov
Confirmed Champ
Confirmed Champ

Try to use css and id and class names of that elements.

View answer in original post

1 REPLY 1

npavlov
Confirmed Champ
Confirmed Champ

Try to use css and id and class names of that elements.