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

New-UDAppBar

Synopsis

Creates an AppBar.

Syntax

New-UDAppBar [[-Id] <String>] [[-Drawer] <Hashtable>] [[-Children] <ScriptBlock>] [[-Position] <String>] [-Footer] [-DisableThemeToggle] [[-ClassName] <String>] [[-Color] <String>] [<CommonParameters>]

Description

Creates an AppBar. This can be used to replace the built-in AppBar.

Parameters

-Id

The ID of the component. It defaults to a random GUID.

Required?                    false
Position?                    1
Default value                [Guid]::NewGuid()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Drawer

A drawer that can be opened from this AppBar. Use New-UDDrawer to create a drawer to pass to this parameter.

-Children

Children of this AppBar. The children of an AppBar are commonly text and buttons.

-Position

The position of this AppBar. A fixed position will override the default AppBar.

Positions the app bar at the bottom of the page to create a footer

-DisableThemeToggle

Removes the theme toggle switch from the app bar.

-ClassName

A CSS class to apply to the app bar.

-Color

The theme color to use for the app bar.

Common parameters

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.

Outputs

Examples

Example 1: Basic App Bar

Creates a new AppBar that is relative to other components.

Example 2: App Bar with Drawer

Creates a new AppBar with a drawer.

Example 3: App Bar with no theme toggle

Creates a new AppBar with no theme toggle switch.

Example 4: App Bar with secondary color

Creates a new AppBar with a secondary color.

[Component("AppBar", "Creates an AppBar.")]

Last updated

Was this helpful?