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

New-UDDrawer

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.

-ShowCollapse

Show the collapse button

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

Creates a custom navbar using New-UDDrawer

[Component("Drawer", "WindowMaximize", "Creates a new card.")]

Last updated

Was this helpful?