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

New-UDButtonGroupItem

Synopsis

Creates a new button group item.

Syntax

New-UDButtonGroupItem [[-Id] <String>] [[-OnClick] <Endpoint>] [[-Text] <String>] [[-Href] <String>] [[-Icon] <Hashtable>] [-ShowLoading] [[-LoadingIndicator] <Object>] [[-LoadingPosition] <String>] [[-Sx] <Hashtable>] [[-Style] <Hashtable>] [<CommonParameters>]

Description

Creates a new button group item. button group items are used with New-UDButtonGroup.

Parameters

-Id

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

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

-OnClick

A script block to execute when the list item is clicked.

-Text

The text to display in the button group item.

-Href

A URL that the user should be redirected to when clicking the button.

-Icon

An icon to display in the button group item.

-ShowLoading

Displays a loading spinner while the OnClick event handler is running.

-LoadingIndicator

A custom element to display instead of the built in spinner for -ShowLoading

-LoadingPosition

The position of the loading indicator. Valid values are: 'start', 'end', 'center'

-Sx

-Style

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 new button group with two items.

Last updated

Was this helpful?