Automatically Expand New-UDListItem Children

Hello,

I was wondering if there is a way to automatically expand children in a UDList, without clicking the carrot to expand manually. This would be helpful in the Nav Drawer as well as within dashboards. After doing some research, I am finding this difficult to achieve in CSS alone, but am curious if someone has tried to do this with New-UDStyle.

Thanks in advance.

Product: PowerShell Universal
Version: 2.8.2
1 Like

I was about to post the same question. My sidenav uses multiple New-UDListItem -Children to create groups/categories of pages. I’ve had a request for an expand all button, to make it easier for people to find things they’re looking for; without having to expand each, one at a time to find a page.

This likely isn’t possible with CSS but I can certainly add a parameter for this.

Awesome! Thanks Adam; as usual :sunglasses:

Thanks Adam!

Hey everyone,

might I ask if this is now possible? I am using UDListItem in my side nav, is there any way to permanently open the children? Or could there be another item I can use to represent different layers in my menu structure?

Thanks a lot!

Yes @tobias15 Adam added the -Open parameter in release 2.10.0. I am currently using the switch in my production dashboards and it works perfectly.

1 Like

Thanks, I try this.
I was a little bit confused by this community software - I read the date behind the posts and interpreted it as “march 2017”, then I thought “I downloaded in the beginning of this year, so maybe it did not work…”

I will do the update, and try this switch!