Rivista UI

This commit is contained in:
2025-06-12 12:57:34 +02:00
parent 79fb383961
commit 0032648e76
22 changed files with 437 additions and 297 deletions

View File

@@ -1,6 +1,6 @@
@inject IJSRuntime JS
<div class="header">
<div class="container header">
<div class="header-content @(Back ? "with-back" : "no-back")">
@if (Back)
{
@@ -26,7 +26,7 @@
}
@if (ShowNotifications)
{
<MudIconButton Icon="@Icons.Material.Filled.Notifications" Color="Color.Dark"/>
@* <MudIconButton Icon="@Icons.Material.Filled.Notifications" Color="Color.Dark"/> *@
}
@if (ShowCalendarToggle)
{
@@ -54,6 +54,7 @@
[Parameter] public string BackTo { get; set; } = "";
[Parameter] public bool Cancel { get; set; }
[Parameter] public EventCallback OnCancel { get; set; }
[Parameter] public string? LabelSave { get; set; }
[Parameter] public EventCallback OnSave { get; set; }
@@ -68,7 +69,14 @@
private async Task GoBack()
{
if (Cancel)
{
await OnCancel.InvokeAsync();
return;
}
await JS.InvokeVoidAsync("goBack");
}
}