구성 요소
평점
점수를 기록하는 별점 컨트롤입니다.
사용법
기본
HTML
<bs:bsui-rating max="5" defaultValue="4" />10점 척도
일반적인 별 다섯 개보다 넓은 설문 척도를 제공합니다.
HTML
<bs:bsui-rating name="score" max="10" defaultValue="7" />입력 대기
필드가 비어 있는 상태로 시작하고, 아래에 척도를 설명합니다.
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>읽기 전용
비활성화된 평점은 값을 입력받지 않고 점수를 표시합니다.
HTML
<bs:bsui-rating max="5" defaultValue="4" disabled="true" />속성
| 속성 | 유형 | 기본값 |
|---|---|---|
name | text | — |
max | number | 5 |
defaultValue | number | 0 |
disabled | toggle | false |
nameAlt | text | — |
onChange | text | — |
value | text | — |