Komponenty
Ocena
Gwiazdki do wystawiania oceny.
Użycie
Podstawowy
HTML
<bs:bsui-rating max="5" defaultValue="4" />Skala dziesięciopunktowa
Więcej niż zwykłe pięć gwiazdek, aby obsłużyć szerszy zakres ankiety.
HTML
<bs:bsui-rating name="score" max="10" defaultValue="7" />Oczekiwanie na dane
Puste pole z wyjaśnieniem skali poniżej.
HTML
<bs:bsui-field>
<bs:bsui-field-label text="How was your support experience?" />
<bs:bsui-rating name="support_rating" max="5" defaultValue="0" />
<bs:bsui-field-description text="One star is poor, five stars is excellent." />
</bs:bsui-field>Tylko do odczytu
Wyłączona ocena wyświetla wynik zamiast go zbierać.
HTML
<bs:bsui-rating max="5" defaultValue="4" disabled="true" />Atrybuty
| Atrybut | Typ | Domyślnie |
|---|---|---|
name | text | — |
max | number | 5 |
defaultValue | number | 0 |
disabled | toggle | false |
nameAlt | text | — |
onChange | text | — |
value | text | — |