Skip to main content
RatingField ← Back to Table of Contents

Summary

Interactive rating input for scores, feedback, and reviews. Supports custom icons (stars, hearts, etc.), semantic colors, and various sizes. Includes a read-only mode that supports fractional values (e.g., 3.7) with partial icon fill. Shares rating display configuration with RatingColumn via matching fluent API.

Basic usage

Standard 5-star rating

Custom icon and color

Read-only fractional display


State & validation

Stored value

In interactive mode, the state is an integer representing the number of selected items. In read-only mode, it can be a float.

Validation rules (built-in)


Configuration API

All methods accept Closure unless noted.

Public helper methods


Real-world examples

Feedback form with required rating

Product list with average rating


Playground

/admin/flex-fields-playground/rating See Playground for setup.

CSS classes (reference)