Class RadzenSteps
RadzenSteps component.
Implements
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenSteps : RadzenComponent, IDisposable
Examples
<RadzenSteps Change=@(args => Console.WriteLine($"Selected index is: {args}"))>
<Steps>
<RadzenStepsItem Text="Orders">
Details for Orders
</RadzenStepsItem>
<RadzenStepsItem Text="Employees">
Details for Employees
</RadzenStepsItem>
</Steps>
</RadzenTabs>
Properties
AllowStepSelect
Declaration
public bool AllowStepSelect { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
CanChange
A callback that will be invoked when the user tries to change the step. Invoke the PreventDefault() method to prevent this change.
Declaration
public EventCallback<StepsCanChangeEventArgs> CanChange { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<StepsCanChangeEventArgs> |
Examples
<RadzenSteps CanChange=@OnCanChange>
</RadzenSteps>
@code {
void OnCanChange(RadzenStepsCanChangeEventArgs args)
{
args.PreventDefault();
}
}
Change
Gets or sets the change callback.
Declaration
public EventCallback<int> Change { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<System.Int32> | The change callback. |
EditContext
Gets or sets the edit context.
Declaration
public EditContext EditContext { get; set; }
Property Value
Type | Description |
---|---|
EditContext | The edit context. |
NextAriaLabel
Gets the next button aria-label attribute.
Declaration
public string NextAriaLabel { get; }
Property Value
Type | Description |
---|---|
System.String | The next button aria-label attribute. |
NextText
Gets or sets the next button text.
Declaration
public string NextText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The next button text. |
NextTitle
Gets or sets the next button title attribute.
Declaration
public string NextTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String | The next button title attribute. |
PreviousAriaLabel
Gets the previous button aria-label attribute.
Declaration
public string PreviousAriaLabel { get; }
Property Value
Type | Description |
---|---|
System.String | The previous button aria-label attribute. |
PreviousText
Gets or sets the previous button text.
Declaration
public string PreviousText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The previous button text. |
PreviousTitle
Gets or sets the previous button title attribute.
Declaration
public string PreviousTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String | The previous button title attribute. |
SelectedIndex
Gets or sets the selected index.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The selected index. |
SelectedIndexChanged
Gets or sets the selected index changed callback.
Declaration
public EventCallback<int> SelectedIndexChanged { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<System.Int32> | The selected index changed callback. |
ShowStepsButtons
Gets or sets a value indicating whether to show steps buttons.
Declaration
public bool ShowStepsButtons { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Steps
Gets or sets the steps.
Declaration
public RenderFragment Steps { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The steps. |
StepsCollection
Gets the steps collection.
Declaration
public IList<RadzenStepsItem> StepsCollection { get; }
Property Value
Type | Description |
---|---|
IList<RadzenStepsItem> | The steps collection. |
Methods
AddStep(RadzenStepsItem)
Adds the step.
Declaration
public void AddStep(RadzenStepsItem step)
Parameters
Type | Name | Description |
---|---|---|
RadzenStepsItem | step | The step. |
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
IsSelected(Int32, RadzenStepsItem)
Determines whether the specified index is selected.
Declaration
protected bool IsSelected(int index, RadzenStepsItem step)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
RadzenStepsItem | step | The step. |
Returns
Type | Description |
---|---|
System.Boolean |
|
NextStep()
Goes to next step.
Declaration
public async System.Threading.Tasks.Task NextStep()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
PrevStep()
Goes to previous step.
Declaration
public async System.Threading.Tasks.Task PrevStep()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
RemoveStep(RadzenStepsItem)
Removes the step.
Declaration
public void RemoveStep(RadzenStepsItem item)
Parameters
Type | Name | Description |
---|---|---|
RadzenStepsItem | item | The item. |
SetParametersAsync(ParameterView)
Called by the Blazor runtime when parameters are set.
Declaration
public override async Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task |