Skip to content

Commit

Permalink
docs(Number): add info about when to use and not to use (#2955)
Browse files Browse the repository at this point in the history
Co-authored-by: Anders <[email protected]>
  • Loading branch information
tujoworker and langz authored Dec 1, 2023
1 parent 80b311d commit 55b3447
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ showTabs: true

There is a corresponding [Value.Number](/uilib/extensions/forms/create-component/Value/Number) component.

## When to use and not to use

`Field.Number` only allows the user to enter numbers (negative and positive) and decimal numbers.

If a number has the type of number, and can not start with a zero, this field may be considered.

But for e.g. a customer number, you rather use [Field.String](/uilib/extensions/forms/base-fields/String/).

Internally, it is used by e.g. [Field.Currency](/uilib/extensions/forms/feature-fields/Currency/).

## Autocomplete and autofill

Check out the [Field.String](/uilib/extensions/forms/base-fields/String/#autocomplete-and-autofill) docs about autocomplete.

0 comments on commit 55b3447

Please sign in to comment.