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

Show-UDSnackbar

Synopsis

Shows a snackbar popup.

Syntax

Show-UDSnackbar [-Message] <String> [[-Id] <String>] [[-AutoHideDuration] <Int32>] [-Persist] [[-Variant] <String>] [[-AnchorVertical] <String>] [[-AnchorHorizontal] <String>] [[-ClassName] <String>] [<CommonParameters>]

Description

Shows a snackbar popup.

Parameters

-Message

The message to display.

Required?                    true
Position?                    1
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Id

The id of the snackbar. If not specified, a new guid will be generated.

-AutoHideDuration

The number of milliseconds to display the snackbar for. Defaults to 5000.

-Persist

Whether the snackbar is persistent.

-Variant

The variant of the snackbar. Can be default, error, success, warning or info.

-AnchorVertical

-AnchorHorizontal

-ClassName

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 Snackbar

Shows a basic snackbar with the message 'Hello World'.

Example 2: Error Snackbar

Shows an error snackbar with the message 'Hello World'.

Example 3: Position

Shows a snackbar in the bottom right corner of the screen.

Last updated

Was this helpful?