Mofaggol Hoshen
Mofaggol Hoshen

Reputation: 738

InputNumber built-in forms component read only in Blazor

How can I make readonly InputNumber, built-in forms component in Blazor?

Upvotes: 1

Views: 1304

Answers (1)

enet
enet

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

Related Questions