Import
import { NuiNumberField, NuiNumberInput, NuiNumberStep } from '@needless-ui/angular/number-field';NuiNumberField
Groups the input with its step buttons.
NuiNumberInput
A text input that holds a number, as an ARIA spinbutton.
| Name | Type | Default | Description |
|---|---|---|---|
valueTwo-way | number | null | null | The number, or null when empty. Also works with forms. |
minInput | number | Smallest allowed value. | |
maxInput | number | Largest allowed value. | |
stepInput | number | 1 | How much one step changes the value. The value snaps to it on blur. |
formatInput | Intl.NumberFormatOptions | {} | Intl.NumberFormat options, such as { style: 'currency', currency: 'EUR' }. |
localeInput | string | LOCALE_ID | Locale for formatting and reading numbers. |
disabledInput | boolean | false | Disables the input and its buttons. |
stepByMethod | (count: number) => void | Steps up (positive) or down (negative) by a number of steps. |
NuiNumberStep
A step button. Holding it repeats.
| Name | Type | Default | Description |
|---|---|---|---|
nuiNumberStepInput | number | 1 steps up and -1 steps down. | |
labelInput | string | Accessible name. Defaults to “Increase” or “Decrease”. |