コンテンツへスキップ

コンポーネント

評価

スコアを記録するための星評価コントロール。

使い方

基本

HTML
<bs:bsui-rating max="5" defaultValue="4" />

10段階評価

一般的な5段階より幅広く評価できるよう、星を10個にしています。

HTML
<bs:bsui-rating name="score" max="10" defaultValue="7" />

入力待ち

フィールドを空欄で表示し、評価尺度を下に説明します。

One star is poor, five stars is excellent.
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 —