timelapse/Timelapse/Shared/TimespanControl.razor

18 lines
622 B
Plaintext
Raw Permalink Normal View History

2021-12-28 07:25:39 +00:00
<label><input type="number" min="0" @bind-value="@Day">Days</label>
<label><input type="number" mix="0" max="23" @bind-value="@Hours">Hours</label>
<label><input type="number" min="0" max="59" @bind-value="@Minutes">Minutes</label>
<label><input type="number" min="0" max="59" @bind-value="@Seconds">Seconds</label>
@code {
[Parameter]
public TimeSpan Value {get {return new TimeSpan(Day,Hours,Minutes,Seconds);} set{Day=value.Days;Hours=value.Hours;Minutes=value.Minutes;Seconds=value.Seconds;}}
int Day {get;set;}
int Hours {get;set;}
int Minutes {get;set;}
int Seconds {get;set;}
}