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

New-UDDrawer

Creates a new drawer.

Synopsis

Creates a new drawer.

Syntax

New-UDDrawer [[-Id] <String>] [[-Children] <ScriptBlock>] [[-Variant] <String>] [[-Anchor] <String>] [[-ClassName] <String>] [-ShowCollapse] [<CommonParameters>]

Description

Creates a new drawer. A drawer is a navigational component that is typically used for navigating between pages. It can be used with New-UDAppBar to provide a custom nav bar.

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

-Children

Navgiation controls to show within the drawer. Use New-UDList and New-UDListItem to generate links within the drawer.

-Variant

The type of drawer. Valid values include "persistent", "permanent", "temporary"

-Anchor

Where to anchor the drawer. Valid values incldue "left", "right", "top", "bottom"

-ClassName

A CSS class to apply to the drawer.

Outputs

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

Last updated

Was this helpful?