Class MudStep
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A individual step as part of a MudStepper.
public class MudStep : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IAsyncDisposable
- Inheritance
-
MudStep
- Implements
- Inherited Members
- Extension Methods
Constructors
MudStep()
public MudStep()
Properties
ChildContent
The content for this step.
[Parameter]
[Category("Appearance")]
public RenderFragment? ChildContent { get; set; }
Property Value
Remarks
Defaults to null
. Only shown when this step is active.
Completed
Whether this step is completed.
[Parameter]
[Category("Behavior")]
public bool Completed { get; set; }
Property Value
Remarks
Defaults to false
.
CompletedChanged
Occurs when Completed has changed.
[Parameter]
[Category("Behavior")]
public EventCallback<bool> CompletedChanged { get; set; }
Property Value
CompletedStepColor
The color used when this step is completed.
[Parameter]
[Category("Appearance")]
public Color? CompletedStepColor { get; set; }
Property Value
Remarks
Defaults to null
.
Disabled
Prevents this step from being selected.
[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }
Property Value
DisabledChanged
Occurs when Disabled has changed.
[Parameter]
[Category("Behavior")]
public EventCallback<bool> DisabledChanged { get; set; }
Property Value
ErrorStepColor
The color used when this step has an error.
[Parameter]
[Category("Appearance")]
public Color? ErrorStepColor { get; set; }
Property Value
Remarks
Defaults to null
.
HasError
Whether this step has an error.
[Parameter]
[Category("Behavior")]
public bool HasError { get; set; }
Property Value
Remarks
Defaults to false
.
HasErrorChanged
Occurs when HasError has changed.
[Parameter]
[Category("Behavior")]
public EventCallback<bool> HasErrorChanged { get; set; }
Property Value
IsActive
Whether this step is the current one being displayed.
public bool IsActive { get; }
Property Value
OnClick
Occurs when this step is clicked.
[Parameter]
[Category("Behavior")]
public EventCallback<MouseEventArgs> OnClick { get; set; }
Property Value
SecondaryText
The subtitle describing this step.
[Parameter]
[Category("Appearance")]
public string? SecondaryText { get; set; }
Property Value
Remarks
Defaults to null
.
Skippable
Whether the user can skip this step.
[Parameter]
[Category("Behavior")]
public bool Skippable { get; set; }
Property Value
Remarks
Defaults to false
.
Title
The title of this step.
[Parameter]
[Category("Appearance")]
public string? Title { get; set; }
Property Value
Remarks
Defaults to null
.
Methods
DisposeAsync()
Releases resources used by this component.
public ValueTask DisposeAsync()
Returns
OnInitializedAsync()
protected override Task OnInitializedAsync()
Returns
SetCompletedAsync(bool, bool)
Sets the Completed parameter, and optionally refreshes the parent MudStepper.
public Task SetCompletedAsync(bool value, bool refreshParent = true)
Parameters
Returns
SetDisabledAsync(bool, bool)
Sets the Disabled parameter, and optionally refreshes the parent MudStepper.
public Task SetDisabledAsync(bool value, bool refreshParent = true)
Parameters
Returns
SetHasErrorAsync(bool, bool)
Sets the HasError parameter, and optionally refreshes the parent MudStepper.
public Task SetHasErrorAsync(bool value, bool refreshParent = true)