Rating
Ratings show people’s opinions of a product, helping others make more informed purchasing decisions. People can also rate products they’ve purchased.
Usage
Basic
Basic usage examples of BitRating, including disabled and readonly states.
Basic:
Disabled:
ReadOnly:
Visibility
Demonstrating different visibility options: visible, hidden, and collapsed.
Visible: [ ]
Hidden: [ ]
Collapsed: [ ]
Style & Class
Explore styling and class customization for BitRating, including component styles, custom classes, and detailed styles.
Component's Style & Class:
Styles & Classes:
Max value
Adjust the maximum rating value to customize the rating scale.
Max is 6
Max is 100
Icons
Customize the rating icons to better match the context, such as hearts, checkboxes, or likes.
Heart:
Checkbox:
Like:
Size
Set different sizes for the rating component: small, medium, and large.
Small:
Medium:
Large:
Binding
Examples of one-way and two-way data binding with BitRating, as well as change event handling.
One-way:
Two-way:
OnChange:
Validation
Validate the rating component using data annotations in a form submission.
RTL
Use the BitRating component in right-to-left (RTL).
API
BitRating parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitInputBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitInputBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitRatingClassStyles properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitSize enum
Name |
Value |
Description |
---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|
- On this page