Blazor Custom formatting for numbers and strings #9435
Labels
area-blazor
Includes: Blazor, Razor Components
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Milestone
I am looking into formatting strings and numbers using blazor-data-bindings. For example, formatting a number with currency, formatting a number with thousands-separators. Currently, there is a method of formatting only DateTime fields as shown below:
<input type="text" bind="@Birthday" /><br /> What is your birthday (German date format)? <input type="text" bind="@Birthday" format-value="dd.MM.yyyy" /><br />
You can always use a Javascript library such as AutoNumeric, but an out-of-the-box solution would speed up development and user-experience. AutoNumeric can also apply formats live while the user is typing in the input fields.
Here are a few simple number formats for demonstration.
-Currency ($5,700.99, €65.76, £62 )
-Percentages (56.789%, 99%)
The text was updated successfully, but these errors were encountered: