ERate Rate
Examples
Rate
Half-star rating
Properties
activeColorcolorActive or selected color.
Dynamic bindingallowHalfboolAllow half-star ratings.
falseclearableboolShow a clear action; ratings may be cleared by clicking the current score again.
falsecolorsvarIcons, colors or labels organized by rating range as arrays or mappings.
[]disabledVoidColorcolorColor of unselected rating icons; disabledVoidColor applies when disabled.
voidColordisabledVoidIconintIcon used by the component.
EIcons.*
0 (no icon)
voidIconenabledboolAllow interaction; false disables the control.
truehalfIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.STAR_FILLheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeighthighThresholdrealThresholds for low and high rating ranges.
4hoverValuerealHovered date or rating used for preview.
-1iconsvarIcons, colors or labels organized by rating range as arrays or mappings.
[]lowThresholdrealThresholds for low and high rating ranges.
2maxintMaximum rating and number of rating icons.
5readOnlyboolPrevent user editing or rating while allowing programmatic value changes.
falsescoreTemplatestringRating display template; {value} is replaced by the current score.
"{value}"showScoreboolDisplay rating text or score.
falseshowTextboolShow progress or rating text.
falsesizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
Inherited; EStyle.Medium by defaulttextColorcolorText color.
Dynamic bindingtextsvarIcons, colors or labels organized by rating range as arrays or mappings.
[]validateEventboolRequest enclosing-form validation when the value changes.
truevaluerealCurrent value; read or write through property bindings, with arrays for multiple or range selection.
0visibleboolWhether the component is visible.
truevoidColorcolorColor of unselected rating icons; disabledVoidColor applies when disabled.
Dynamic bindingvoidIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.STARwidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthcurrentColorcolorRead onlyResolved color from the theme, current state and custom palette.
Computed at runtimecurrentIconintRead onlyIcon associated with the current rating range.
EIcons.*
0: no explicit icon
Computed at runtimecurrentScorerealRead onlyCurrent rating including hover preview.
Computed at runtimeSignals
rated(real value)Emitted when the user rates an item; value is the selected score.
Methods
resetCurrentValue()End the rating preview and restore the selected rating.
setCurrentValue(nextValue)Set the rating value used for the hover preview.
setRating(nextValue)Set the rating using the component range and precision limits.