Add options

This commit is contained in:
ahjephson
2024-04-26 19:45:10 +01:00
parent f9847c60f5
commit d698370c45
34 changed files with 2542 additions and 195 deletions

View File

@@ -0,0 +1,22 @@
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);
}
}
}