aikau styling of elements - descendants of the widget

cancel
Showing results for 
Search instead for 
Did you mean: 
npavlov
Active Member II

aikau styling of elements - descendants of the widget

Jump to solution

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 Solution

Accepted Solutions
npavlov
Active Member II

Re: aikau styling of elements - descendants of the widget

Jump to solution

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

View solution in original post

1 Reply
npavlov
Active Member II

Re: aikau styling of elements - descendants of the widget

Jump to solution

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