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

New-UDAlert

An alert displays a short, important message in a way that attracts the user's attention without interrupting the user's task.

Synopsis

An alert displays a short, important message in a way that attracts the user's attention without interrupting the user's task.

Syntax

New-UDAlert [-Id <String>] [-Severity <String>] [-Text <String>] [-Title <String>] [-ClassName <String>] [-Style <Hashtable>] [-Dense] [<CommonParameters>]

    New-UDAlert [-Id <String>] [-Severity <String>] [-Children <ScriptBlock>] [-Title <String>] [-ClassName <String>] [-Style <Hashtable>] [-Dense] [<CommonParameters>]

Description

An alert displays a short, important message in a way that attracts the user's attention without interrupting the user's task.

Parameters

-Id

The ID of this component.

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

-Severity

The severity of this alert. Valid values are: "success", "error", "warning", "info"

-Children

Content of the alert.

-Text

Text for the body of the alert.

-Title

A title for this alert.

-ClassName

A CSS class to apply to the alert.

-Style

An hashtable of styles to apply to this component.

Outputs

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

Last updated

Was this helpful?