Files
qbtmud/Lantean.QBTMudBlade/Components/MudFieldSwitch.razor.cs
2024-04-26 19:45:10 +01:00

23 lines
508 B
C#

using Microsoft.AspNetCore.Components;
namespace Lantean.QBTMudBlade.Components
{
public partial class MudFieldSwitch
{
[Parameter]
public bool Value { get; set; }
[Parameter]
public EventCallback<bool> ValueChanged { get; set; }
[Parameter]
public string? Label { get; set; }
protected async Task ValueChangedCallback(bool value)
{
Value = value;
await ValueChanged.InvokeAsync(value);
}
}
}