Removing Umbraco Backoffice Dropdown
# help-with-umbraco
d
Is it possible to remove the dropdown arrow on the left of the node? I have set this up as a collection, so I don't want it to have the dropdown like previous versions of Umbraco https://cdn.discordapp.com/attachments/1346806216004730901/1346806216160051261/image.png?ex=67c98688&is=67c83508&hm=b704f859cdcc53d06b1e8fe8720055eeca79d0dfbe88499a20ef703f467bfb9e&
l
I think the reason why the children of a node that was configured as a list view were previously hidden was for performance issues. But since the tree now supports paged loading, there was no reason to hide the children anymore. I don't think I've seen a setting that hides the children like in older versions. Doesn't mean that there isn't a way per se, but I just don't know it 🙂
Copy code
<uui-menu-item label="Menu Item 1" has-children>
    <uui-menu-item label="Nested Menu Item 1"></uui-menu-item>
    <uui-menu-item label="Nested Menu Item 2"></uui-menu-item>
</uui-menu-item>
wonder if there is a way to remove that
has-children
assuming it's the driver for the arrow?
l
According to the docs (https://uui.umbraco.com/?path=/docs/uui-menu-item--docs): hasChildren: Shows/hides the caret. There is also a property showChildren.
m
this looks like the definite answer from HQ.. (for a best of all worlds...) https://github.com/umbraco/Umbraco-CMS/issues/16849#issuecomment-2612479634 though not sure pagination in a tree is my prefered UI.. 🙂
d
hmm.. yeah I'm not particulary fond of that idea, surely it would look cluttered! Although, I haven't got that far with building up the content to see this yet. Quite sad to see that they've decided to opt in for a one box fits all solution
Thanks for your messages though both, much appreciated!
s
As Niels notes in https://github.com/umbraco/Umbraco-CMS/discussions/16628#discussioncomment-10405966 > It may still be relevant to be able to hide children in the tree, but I would like to hear and see the use cases before we invest time and effort into such feature. So please share more concrete examples of such. Please add your examples so we can consider changing it
l
I think the list view icon that is placed of the node's icon is way more of an issue than a caret 😛
s
Not sure what that means, but I am sure you're right (?) 😅
l
The 'list view' icon that is displayed on top of the icon of the node is taking up waaaay to much space. You can hardly see the icon of the node because of that
s
Ah okay, is there an issue on the tracker for that somewhere?
l
Hmm not sure, but I've seen the remark before, so it could very well be
4 Views