Summary
A table column for displaying numeric ratings as a series of stars or custom icons. It supports fractional fills (e.g., 4.5 stars), custom icons, and color-coded states. Pair this with RatingField for a complete rating system.Basic usage
Standard 5-star rating
Custom icons and colors
State & formatting
Stored value
The column expects a numeric value (integer or float). Values exceeding thestars() count are capped at the maximum.
Fractional Fills
RatingColumn automatically calculates fractional fills for non-integer values. A rating of 3.7 will show three full stars and one star filled to 70%.
Displaying the numeric value
By default, the numeric value is shown next to the icons. You can hide it if needed:Configuration API
All methods acceptClosure unless noted.
Real-world examples
Product Reviews Table
Playground
/admin/flex-fields-playground/rating-column
See Playground for setup.