Move vecchia soluzione NET5

This commit is contained in:
Samuele Locatelli
2022-04-12 14:26:09 +02:00
parent f0d8ede575
commit df973a4fbe
72 changed files with 0 additions and 0 deletions
@@ -0,0 +1,41 @@
@using BlaServApp.UI.Components
@using BlaServApp.UI.Data
@inject MessageService MessageService
<div class="input-group input-group-sm">
<input @bind-value="searchVal" @bind-value:event="oninput" type="text" class="form-control" title="Campo Ricerca" placeholder="Ricerca [ALT-R]" accesskey="R" />
<div class="input-group-append">
<button @onclick="reset" class="btn btn-success input-group-text">reset</button>
</div>
</div>
@code {
[Parameter]
public EventCallback<string> searchUpdated { get; set; }
[Parameter]
public string searchVal
{
get
{
return MessageService.SearchVal;
}
set
{
MessageService.SearchVal = value;
reportChange();
}
}
private void reportChange()
{
searchUpdated.InvokeAsync(searchVal);
}
private void reset()
{
searchVal = "";
}
}