Inizio gestione parametri RT / LogView
This commit is contained in:
@@ -7,7 +7,17 @@
|
||||
<h3>Parameters</h3>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<button @onclick="() => resetSel()" class="btn btn-info"><i class="fa-solid fa-repeat" title="reset selection"></i></button>
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="px-2">
|
||||
<div class="form-check form-check-sm form-switch" title="Setup Alarms (mute/unmute)">
|
||||
<label class="form-check-label" for="mySwitch">@currMode</label>
|
||||
<input class="form-check-input" type="checkbox" id="mySwitch" name="setupAlarms" value="@isRT" checked @onclick="() => toggleRT()">
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<button @onclick="() => resetSel()" class="btn btn-info"><i class="fa-solid fa-repeat" title="reset selection"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -24,7 +34,7 @@
|
||||
else
|
||||
{
|
||||
<div class="row">
|
||||
|
||||
|
||||
@foreach (var item in selParams)
|
||||
{
|
||||
<div class="@pcss">
|
||||
|
||||
@@ -45,6 +45,17 @@ namespace MP.MONO.UI.Pages
|
||||
selParams = new List<string>();
|
||||
}
|
||||
|
||||
protected bool isRT = true;
|
||||
protected void toggleRT()
|
||||
{
|
||||
isRT = !isRT;
|
||||
}
|
||||
|
||||
protected string currMode
|
||||
{
|
||||
get => isRT ? "RealTime" : "Log View";
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user