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

New-UDRadioGroup

Creates a group of radio buttons.

Synopsis

Creates a group of radio buttons.

Syntax

New-UDRadioGroup [[-Id] <String>] [[-Label] <String>] [[-Children] <ScriptBlock>] [[-OnChange] <Endpoint>] [[-Value] <String>] [[-ClassName] <String>] [[-DefaultValue] <String>] [-Disabled] [[-Sx] <Hashtable>] [[-Style] <Hashtable>] [<CommonParameters>]

Description

Creates a group of radio buttons. Within a group, only a single radio will be able to be selected.

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

-Label

The label to show for this radio group.

-Children

The radio buttons to include within this group.

-OnChange

A script block to call when the radio group selection changes. The $EventData variable will include the value of the radio that is selected.

-Value

The selected value for this radio group.

-ClassName

A CSS class to apply to the radio group.

-DefaultValue

The default value for this radio group.

-Sx

The sx prop allows you to add custom styles to your component.

-Style

The style prop allows you to add custom styles to your component.

Outputs

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

Last updated

Was this helpful?