انتقل إلى المحتوى

المكونات

التقييم

عنصر تحكم بالنجوم لتسجيل التقييم.

الاستخدام

أساسي

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

مقياس من عشر نقاط

أكثر من النجوم الخمسة المعتادة لنطاق أوسع في الاستبيان.

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 —