Files
radzen-blazor/Radzen.Blazor/StepsCanChangeEventArgs.cs
Marek 36b777da8f Can change added (#1317)
* Can change added

* demo added

* CanChange with EventCallback

* renamed

* Rename to follow existing naming conventions.

* Add description.

---------

Co-authored-by: Marek Mička <xmicka13@vutbr.cz>
Co-authored-by: Atanas Korchev <akorchev@gmail.com>
2024-01-23 16:59:26 +02:00

28 lines
827 B
C#

namespace Radzen.Blazor
{
/// <summary>
/// Supplies information about a <see cref="RadzenSteps.CanChange" /> event that is being raised.
/// </summary>
public class StepsCanChangeEventArgs
{
/// <summary>
/// Index of clicked step.
/// </summary>
public int SelectedIndex { get; set; }
/// <summary>
/// Index of clicked step.
/// </summary>
public int NewIndex { get; set; }
/// <summary>
/// Has step change action been prevented from occuring.
/// </summary>
public bool IsDefaultPrevented { get; private set; }
/// <summary>
/// Prevent the change of the step.
/// </summary>
public void PreventDefault()
{
IsDefaultPrevented = true;
}
}
}