Navigation

Customize the navigation in your dashboard.

Download this Lecture Docs

In this video, we look at how to setup navigation in a dashboard. We'll cover built-in navigation, static navigation and dynamic navigation.

The script from this video can be found here.

$Navigation = {
    New-UDListItem -Label "Page One" -Href "/Page-One"
    New-UDListItem -Label "Parent" -Children {
        New-UDListItem -Label "Page Two" -Href '/Page-two' -Nested
        New-UDListItem -Label "External Link" -Href 'https://www.ironmansoftware.com'  -Nested
    }
    New-UDListItem -Label (Get-Date) -Href "/Page-One"
}

$Navigation = @(
    New-UDListItem -Label "Page One" -Href "/Page-One"
    New-UDListItem -Label "Parent" -Children {
        New-UDListItem -Label "Page Two" -Href '/Page-two' -Nested
        New-UDListItem -Label "External Link" -Href 'https://www.ironmansoftware.com'  -Nested
    }
)

$Pages = @()
$Pages += New-UDPage -Name 'Page One' -Content {
    New-UDTypography -Text 'Page One'
}

$Pages += New-UDPage -Name 'Page Two' -Content {
    New-UDTypography -Text 'Page Two'
}

New-UDDashboard -Title 'Pages' -Pages $Pages -Navigation $Navigation #-NavigationLayout permanent