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

New-UDStepper

Synopsis

Creates a new stepper component.

Syntax

New-UDStepper [[-Id] <String>] [[-ActiveStep] <Int32>] [-Children] <ScriptBlock> [-NonLinear] [-AlternativeLabel] [-OnFinish] <Endpoint> [[-OnCancel] <Endpoint>] [[-OnValidateStep] <Endpoint>] [[-Orientation] <String>] [[-NextButtonText] <String>] [[-BackButtonText] <String>] [[-FinishButtonText] <String>] [[-CancelButtonText] <String>] [[-ClassName] <String>] [[-Style] <Hashtable>] [[-Sx] <Hashtable>] [<CommonParameters>]

Description

Creates a new stepper component. Steppers can be used as multi-step forms or to display information in a stepped manner.

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

-ActiveStep

Sets the active step. This should be the index of the step.

-Children

The steps for this stepper. Use New-UDStep to create new steps.

-NonLinear

Allows the user to progress to steps out of order.

-AlternativeLabel

Places the step label under the step number.

-OnFinish

A script block that is executed when the stepper is finished.

-OnCancel

-OnValidateStep

[Parameter()] [Endpoint]$OnCompleteStep,

-Orientation

Sets the orientation of the stepper.

-NextButtonText

The text to display in the next button.

-BackButtonText

The text to display in the back button.

-FinishButtonText

-CancelButtonText

The text to display in the cancel button.

-ClassName

A CSS class to apply to the stepper.

-Style

A hashtable of styles to apply to the stepper.

-Sx

A hashtable of styles to apply to the stepper.

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: Basic stepper

Creates a new stepper with three steps.

Example 2: NonLinear and AlternativeLabel

Creates a new stepper with three steps and non-linear and alternative label options.

Example 3: Vertical orientation

Creates a new stepper with three steps and vertical orientation.

Example 4: Custom button text

Creates a new stepper with three steps and custom button text.

Example 5: Optional step

Creates a new stepper with three steps and an optional step.

Example 6: Custom icons

Creates a new stepper with three steps and custom icons.

Example 7: Validation

Creates a new stepper with three steps and validation.

Example 8: Disable previous

Creates a new stepper with three steps and disables the back button on the second step.

[Component("Stepper", "WandMagicSparkles", "Creates a new card.")]

Last updated

Was this helpful?