This same code from the docs:
New-UDDashboard -Title 'PowerShell Universal' -Content {
} -Navigation {
New-UDList -Children {
New-UDListItem -Label "Home"
New-UDListItem -Label "Getting Started" -Children {
New-UDListItem -Label "Installation" -OnClick {}
New-UDListItem -Label "Usage" -OnClick {}
New-UDListItem -Label "FAQs" -OnClick {}
New-UDListItem -Label "System Requirements" -OnClick {}
New-UDListItem -Label "Purchasing" -OnClick {}
}
}
} -NavigationLayout permanent
does not seem to work. I’ve tested 2.7.4 - 2.8.3 with this code and other variations of -Navigation and consistently get the below (or a variation of it).
Mar 5, 2022 9:09 AM Startup: Cannot process argument transformation on parameter 'Navigation'. Cannot convert the "
New-UDList -Children {
New-UDListItem -Label "Home"
New-UDListItem -Label "Getting Started" -Children {
New-UDListItem -Label "Installation" -OnClick {}
New-UDListItem -Label "Usage" -OnClick {}
New-UDListItem -Label "FAQs" -OnClick {}
New-UDListItem -Label "System Requirements" -OnClick {}
New-UDListItem -Label "Purchasing" -OnClick {}
}
}
" value of type "System.Management.Automation.ScriptBlock" to type "System.Collections.Hashtable[]".