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

New-UDSlider

A slider component.

Synopsis

A slider component.

Syntax

New-UDSlider [[-Id] <String>] [[-Value] <Int32[]>] [[-Minimum] <Int32>] [[-Maximum] <Int32>] [-Disabled] [-Marks] [[-OnChange] <Endpoint>] [[-Orientation] <String>] [[-Step] <Int32>] [[-ValueLabelDisplay] <String>] [[-ClassName] <String>] [[-Color] <String>] [<CommonParameters>]

Description

A slider component. Sliders can be used to define values within a range or selecting a range of values. You can use this component with New-UDForm.

Parameters

-Id

The ID of this component.

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

-Value <Int32[]>

The value of the slider.

-Minimum

The minimum value of the slider.

-Maximum

The maximum value of the slider.

-OnChange

A script block that is invoked when the slider value changes. You can access the slider value within the script block by referencing the $EventData variable.

-Orientation

The orientation of the slider.

-Step

Step size of the slider.

-ValueLabelDisplay

Whether to display value labels.

-ClassName

A CSS class to apply to the slider.

-Color

The color of the slider. Defaults to 'primary'. Valid values: "primary", "secondary"

Outputs

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

Last updated

Was this helpful?