mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
* 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>
28 lines
827 B
C#
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;
|
|
}
|
|
}
|
|
} |