Input Number

Pole liczbowe z przyciskami minus i plus — spinbutton obsługiwany strzałkami, Page Up / Down i Home / End, ograniczony do min i max, jako kontrolka formularza.

Dostępny w
  • Angular: dostępny
  • Vue: dostępny
  • React: dostępny
  • React Native: dostępny

Użycie

2 × €24.00 = €48.00

Import

ts
import {
  SoneInputNumberComponent,
} from "@surface-one/angular/input-number";

Dokumentacja API

SoneInputNumberComponentKomponent

A number field with − and + buttons — a quantity in a cart, a count in a form. The field is a WAI-ARIA spinbutton: ↑ / ↓ step, Page Up / Page Down step × 10, Home / End jump to `min` / `max`; typed text is parsed and clamped on blur or Enter. A ControlValueAccessor of `number | null`, or `[(value)]`.

Selektor
sone-input-number
Wejścia
NazwaTyp Domyślnie
valuedwukierunkowenumber | nullnull
minnullnull
maxnullnull
stepnumber1
sizeInputNumberSize"default"
placeholderstring""
inputIdstring | nullnull
ariaLabel

The field's accessible name, when no `<label for>` names it.

string | nullnull
disabledbooleanfalse
invalidbooleanfalse
decrementLabel—$localize`:Button that lowers a number field by one step:Decrease`
incrementLabel—$localize`:Button that raises a number field by one step:Increase`