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

New-UDButtonGroupItem

Creates a new button group item.

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.

-LoadingIndicator A custom element to display instead of the built in spinner for -ShowLoadingRequired? falsePosition? 6Default valueAccept pipeline input? falseAliasesAccept wildcard characters? false-LoadingPositionThe position of the loading indicator. Valid values are: 'start', 'end', 'center'Required? falsePosition? 7Default value centerAccept pipeline input? falseAliasesAccept wildcard characters? false-SxRequired? falsePosition? 8Default valueAccept pipeline input? falseAliasesAccept wildcard characters? false-StyleRequired? falsePosition? 9Default valueAccept pipeline input? falseAliasesAccept wildcard characters? false <CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).Outputs-------------------------- EXAMPLE 1 --------------------------PS > Creates a new button group with two items.New-UDButtonGroup -Content { New-UDButtonGroupItem -Text 'Delete' New-UDButtonGroupItem -Text 'Copy'}

Last updated

Was this helpful?