Reputation: 738
How can I make readonly InputNumber, built-in forms component in Blazor?
Upvotes: 1
Views: 1304
Reputation: 45586
You can easily do it by adding the readonly
attribute like this:
<InputNumber readonly Id="name" Class="form-control" @bind-Value="@Model.NumberSelection" />
Upvotes: 1