Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Format InputNumber as percent

$
0
0

I have a model bound to an edit form. One of the properties of the model is a decimal as percent. I would like to show the user, and allow them to type things like:

10.5instead of.015

Is there an InputNumber formatter? I'd be ok with a third party nuget to manage this as well.This is an over-simplified code sample

<EditForm Model="@Model"><InputNumber @bind-Value="Model.PercentValue" /></EditForm>

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>