We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffa11b5 commit a187932Copy full SHA for a187932
src/JoinRpg.WebComponents/NumberInput.razor
@@ -1,15 +1,21 @@
1
-<input type="number" class="form-control" @onchange="UpdateValue" name="@Name" value="@Value"/>
+<input type="number" class="form-control" @onchange="UpdateValue" name="@Name" value="@Value" min="@Min" max="@Max"/>
2
3
@code {
4
[Parameter]
5
- public int? Value { get; set; }
+ public int? Value { get; set; }
6
7
8
public EventCallback<int?> ValueChanged { get; set; }
9
10
11
public string Name { get; set; } = null!;
12
13
+ [Parameter]
14
+ public int? Min { get; set; }
15
+
16
17
+ public int? Max { get; set; }
18
19
private async Task UpdateValue(ChangeEventArgs eventArgs)
20
{
21
var value = eventArgs.Value?.ToString();
0 commit comments