mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-23 04:52:22 +00:00
23 lines
508 B
C#
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);
|
|
}
|
|
}
|
|
}
|