← Back to Table of Contents
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
Stored value
The column expects a finite numeric value (integer, float or numeric string). Values exceeding the stars() count are capped at the maximum. Empty, negative, nonfinite or malformed values display an empty cell. Column formatting does not validate or write database values.
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:
Shared assets and table options
RatingColumn is registered as an independent column through the FLEX component definition API. It shares rating styles and icon markup with RatingField and loads no form JavaScript. Each rendered cell has its own asset boundary, including identical ratings on different records.
Normal TextColumn options remain available: label(), sortable(), tooltip(), alignment(), toggleable() and relationship paths follow Filament’s table API. Configure rating appearance with ratingColor(), ratingIcon() and ratingSize(); these are separate from TextColumn’s text-color/icon settings.
Use criticalStyles() only for a table visible in the initial page. Hidden tabs and closed modals should keep the normal lazy behavior.
Configuration API
All methods accept Closure unless noted.
Real-world examples
Product Reviews Table
Playground
/admin/flex-fields/rating?variant=table-column
See Playground for setup.
CSS classes (reference)
Last modified on October 16, 2026