Componenti
Campo numerico
Un input numerico con controlli incrementali e intervallo limitato.
Utilizzo
Base
HTML
<bs:bsui-number-field defaultValue="3" min="1" max="20" />Incremento decimale
Incrementi di mezzo invece che di numeri interi.
HTML
<bs:bsui-number-field defaultValue="2.5" min="0" max="10" step="0.5" />Quantità con etichetta
Un campo con etichetta e le conseguenze sul prezzo indicate sotto.
HTML
<bs:bsui-field>
<bs:bsui-field-label text="Seats" />
<bs:bsui-number-field name="seats" defaultValue="5" min="1" max="50" />
<bs:bsui-field-description text="Each seat is billed monthly." />
</bs:bsui-field>Disabilitato
I pulsanti di incremento e decremento e l'inserimento di testo sono bloccati insieme.
HTML
<bs:bsui-number-field defaultValue="1" min="1" max="10" disabled="true" />Attributi
| Attributo | Tipo | Predefinito |
|---|---|---|
defaultValue | number | — |
min | number | — |
max | number | — |
step | number | 1 |
name | text | — |
disabled | toggle | false |
nameAlt | text | — |
onChange | text | — |
value | text | — |