Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor Custom formatting for numbers and strings #9435

Closed
ericgrantholland opened this issue Apr 16, 2019 · 3 comments
Closed

Blazor Custom formatting for numbers and strings #9435

ericgrantholland opened this issue Apr 16, 2019 · 3 comments
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

Comments

@ericgrantholland
Copy link

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%)

@mkArtakMSFT mkArtakMSFT added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates area-blazor Includes: Blazor, Razor Components labels Apr 16, 2019
@mkArtakMSFT
Copy link
Member

Thanks for contacting us, @ericgrantholland.
We've moved this issue to the Backlog milestone. This means that it is not going to happen for the coming release. We will reassess the backlog following the current release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources.

@mkArtakMSFT mkArtakMSFT added this to the Backlog milestone Apr 17, 2019
@mkArtakMSFT mkArtakMSFT added the enhancement This issue represents an ask for new feature or an enhancement to an existing one label Apr 17, 2019
@mkArtakMSFT mkArtakMSFT removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels May 9, 2019
@gingters
Copy link

Please reconsider "This means that it is not going to happen for the coming release. ". This is an essential required feature for displaying data to the user and would repell a lot of users from using Blazor for real-world applications.

@mkArtakMSFT
Copy link
Member

We're closing this issue as a dupe of #5523, which we plan to handle during 3.1 timeframe.

@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Jun 18, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

3 participants