Skip to content

[dev-v5] Add FluentNumberInput wrapper #4544

@MarvinKlein1508

Description

@MarvinKlein1508

FluentNumberField is deprecated and won't be in v5 anymore. We now suggest the user to use FluentTextInput as a replacement which is pretty hard because you can't bind anything else besides a string to this component.

We should add some sort of wrapper component for FluentTextInput to v5 which allows binding to different number types. The parsing can be taken from the official InputNumber component in Blazor.

https://github.com/dotnet/aspnetcore/blob/main/src/Components/Web/src/Forms/InputNumber.cs

This will make it easier for devs to migrate to v5 because otherwise the dev has to todo the following:

  1. Create a string field which he can bind to
  2. Do the parsing himself
  3. Apply the parsed value from the string to his actual object

FluentTextInput already allows to define Type="TextInputType.Number.

This will mimic the UI to be a bit more FluentUI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v5For the next major version

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions