Rivista UI
This commit is contained in:
22
Template.Shared/Core/Helpers/ModalHelpers.cs
Normal file
22
Template.Shared/Core/Helpers/ModalHelpers.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using MudBlazor;
|
||||
using Template.Shared.Components.Pages;
|
||||
|
||||
namespace Template.Shared.Core.Helpers;
|
||||
|
||||
public class ModalHelpers
|
||||
{
|
||||
public static Task OpenActivityForm(IDialogService dialog ,string? id = null) =>
|
||||
dialog.ShowAsync<ActivityForm>(
|
||||
"Activity form",
|
||||
new DialogParameters<ActivityForm>
|
||||
{
|
||||
{ x => x.Id, id}
|
||||
},
|
||||
new DialogOptions
|
||||
{
|
||||
FullScreen = true,
|
||||
CloseButton = false,
|
||||
NoHeader = true
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user