For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDDashboard

Creates a new dashboard.

Synopsis

Creates a new dashboard.

Syntax

New-UDDashboard [-Title <String>] [-Pages <DashboardPage[]>] [-Theme <Hashtable>] [-Scripts <String[]>] [-Stylesheets <String[]>] [-Logo <String>] [-DefaultTheme <String>] [-DisableThemeToggle] [-HeaderPosition <String>] [-HeaderColor <DashboardColor>] [-HeaderBackgroundColor <DashboardColor>] [-NavigationLayout <String>] [-Navigation <Hashtable[]>] [-HideUserName] [-HideNavigation] [-LoadNavigation <Endpoint>] [-HeaderContent <Endpoint>] [-PageNotFound <Endpoint>] [-NotAuthorized <Endpoint>] [-SessionTimeoutModal <ScriptBlock>] [-Menu <Endpoint>] [<CommonParameters>]

    New-UDDashboard [-Title <String>] -Content <Endpoint> [-Theme <Hashtable>] [-Scripts <String[]>] [-Stylesheets <String[]>] [-Logo <String>] [-DefaultTheme <String>] [-DisableThemeToggle] [-HeaderPosition <String>] [-HeaderColor <DashboardColor>] [-HeaderBackgroundColor <DashboardColor>] [-NavigationLayout <String>] [-Navigation <Hashtable[]>] [-HideUserName] [-HideNavigation] [-LoadNavigation <Endpoint>] [-HeaderContent <Endpoint>] [-PageNotFound <Endpoint>] [-NotAuthorized <Endpoint>] [-SessionTimeoutModal <ScriptBlock>] [-Menu <Endpoint>] [<CommonParameters>]

Description

Creates a new dashboard. This component is the root element for all dashboards. You can define content, pages, themes and more.

Parameters

-Title

The title of the dashboard.

Required?                    false
Position?                    named
Default value                PowerShell Universal
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Content

The content for this dashboard. When using content, it creates a dashboard with a single page.

-Pages <DashboardPage[]>

Pages for this dashboard. Use New-UDPage to define a page and pass an array of pages to this parameter.

-Theme

The theme for this dashboard. You can define a theme with New-UDTheme.

-Scripts <String[]>

JavaScript files to run when this dashboard is loaded. These JavaScript files can be absolute and hosted in a third-party CDN or you can host them yourself with New-PSUPublishedFolder.

-Stylesheets <String[]>

CSS files to run when this dashboard is loaded. These CSS files can be absolute and hosted in a third-party CDN or you can host them yourself with New-PSUPublishedFolder.

A logo to display in the navigation bar. You can use New-PSUPublishedFolder to host this logo file.

-DefaultTheme

The default theme to show when the page is loaded. The default is to use the light theme.

-HeaderPosition

Position of the header within the dashboard.

-HeaderColor

The color of the header. This will override the theme colors.

-HeaderBackgroundColor

The background color of the header. This will override the theme colors.

The layout of the navigation. Valid values are 'Temporary' and 'Permanent'.

The navigation for the dashboard. This is an array of navigation items.

-LoadNavigation

An endpoint to load navigation items. This endpoint should return an array of navigation items.

-HeaderContent

An endpoint to load content into the header.

-PageNotFound

An endpoint to load content when a page is not found.

-NotAuthorized

An endpoint to load content when a user is not authorized.

-SessionTimeoutModal

A script block that will be executed when the session times out.

An endpoint to load a menu into the dashboard.

Outputs

-------------------------- EXAMPLE 1 --------------------------

Last updated

Was this helpful?