feature(BuildCalc) Added reset button, can change micro delay, and can alter timing interval again
This commit is contained in:
@@ -45,7 +45,8 @@
|
||||
[Parameter]
|
||||
public ButtonType ButtonType { get; set; } = default!;
|
||||
|
||||
private void ButtonClicked(EventArgs eventArgs) {
|
||||
private void ButtonClicked(EventArgs eventArgs)
|
||||
{
|
||||
OnClick.InvokeAsync(eventArgs);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
<div class="groupButtonContainerContainer">
|
||||
<div class="groupButtonContainer">
|
||||
@foreach (var choice in Choices) {
|
||||
var styleClass = "";
|
||||
if (choice.Equals(Choice)) {
|
||||
styleClass = "selected";
|
||||
<div class="groupButtonContainer">
|
||||
@foreach (var choice in Choices)
|
||||
{
|
||||
var styleClass = "";
|
||||
if (choice.Equals(Choice))
|
||||
{
|
||||
styleClass = "selected";
|
||||
}
|
||||
<button @onclick="@(e => OnChangeChoice(choice))" class="groupChoiceButton @styleClass">@choice</button>
|
||||
}
|
||||
<button @onclick="@(e => OnChangeChoice(choice))" class="groupChoiceButton @styleClass">@choice</button>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
|
||||
@@ -76,12 +78,15 @@
|
||||
[Parameter]
|
||||
public EventCallback<string> OnClick { get; set; }
|
||||
|
||||
|
||||
protected override void OnInitialized() { }
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
void OnChangeChoice(string choice)
|
||||
{
|
||||
Choice = choice;
|
||||
OnClick.InvokeAsync(choice);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
namespace Components.Inputs;
|
||||
|
||||
public enum ButtonType {
|
||||
public enum ButtonType
|
||||
{
|
||||
Primary, // Positive Actions
|
||||
Secondary // Destruction Action
|
||||
}
|
||||
@@ -25,4 +25,5 @@
|
||||
|
||||
[Parameter]
|
||||
public string Href { get; set; } = "";
|
||||
|
||||
}
|
||||
@@ -25,4 +25,5 @@
|
||||
|
||||
[Parameter]
|
||||
public string Href { get; set; } = "";
|
||||
|
||||
}
|
||||
@@ -1,10 +1,6 @@
|
||||
@using Model.Entity
|
||||
@using Services.Website
|
||||
@using System.ComponentModel.DataAnnotations
|
||||
@using Model.Entity.Data
|
||||
@using Services
|
||||
|
||||
@inject IEntityDialogService entityDialogService
|
||||
@inject IEntityDialogService entityDialogService
|
||||
|
||||
|
||||
@if (EntityId == null)
|
||||
@@ -17,8 +13,9 @@ else
|
||||
}
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter] public string EntityId { get; set; } = default!;
|
||||
|
||||
[Parameter]
|
||||
public string EntityId { get; set; } = default!;
|
||||
|
||||
private EntityModel Entity => DATA.Get()[EntityId];
|
||||
|
||||
@@ -26,4 +23,5 @@ else
|
||||
{
|
||||
entityDialogService.AddDialog(EntityId);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
.entityLabel {
|
||||
font-weight: bolder;
|
||||
box-shadow: 1px 1px 0 0 rgba(0,0,0,0.2);
|
||||
box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2);
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user