Spostato componente in librery...
This commit is contained in:
@@ -3,11 +3,6 @@
|
||||
<h3>Pure Blazor Prompt Test</h3>
|
||||
<hr />
|
||||
|
||||
<button class="btn btn-primary" @onclick="AskName">Ask Name</button>
|
||||
|
||||
|
||||
<CustomDialog @ref="promptDialog" Title="Test Custom Dialog" Message="Nome?" UserInput="MarioRossi" />
|
||||
|
||||
<i class="fa-solid fa-spinner fa-3x fa-spin"></i>
|
||||
<hr />
|
||||
|
||||
|
||||
+11
-10
@@ -1,4 +1,5 @@
|
||||
@inject IJSRuntime JS
|
||||
@using Microsoft.JSInterop
|
||||
@inject IJSRuntime JS
|
||||
|
||||
<div class="modal fade" id="@ModalId" tabindex="-1" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-top">
|
||||
@@ -40,19 +41,19 @@
|
||||
private TaskCompletionSource<object?>? tcs;
|
||||
private string ModalId { get; } = $"modal_{Guid.NewGuid():N}";
|
||||
|
||||
[Parameter]
|
||||
[Parameter]
|
||||
public string Title { get; set; } = "Modal";
|
||||
|
||||
[Parameter]
|
||||
|
||||
[Parameter]
|
||||
public string Message { get; set; } = "";
|
||||
|
||||
[Parameter]
|
||||
|
||||
[Parameter]
|
||||
public string UserInput { get; set; } = "";
|
||||
|
||||
[Parameter]
|
||||
|
||||
[Parameter]
|
||||
public string Placeholder { get; set; } = "";
|
||||
|
||||
[Parameter]
|
||||
|
||||
[Parameter]
|
||||
public ModalMode Mode { get; set; } = ModalMode.Message;
|
||||
|
||||
/// <summary>
|
||||
@@ -30,5 +30,9 @@
|
||||
{
|
||||
"outputFile": "CustomDialog.razor.css",
|
||||
"inputFile": "CustomDialog.razor.less"
|
||||
},
|
||||
{
|
||||
"outputFile": "BootstrapModal.razor.css",
|
||||
"inputFile": "BootstrapModal.razor.less"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user