SRatingComponent
This component represent a simple rating "stars" based component. You can as well choose the icon you want to use, the number of them, etc...
Preview
Simple rating
Loading code example. Please wait...
More stars
Loading code example. Please wait...
Different icon and color
Loading code example. Please wait...
Changing size
Loading code example. Please wait...
Features
Import
Install
Events
-
s-rating.change
Dispatched when the rating has been updated
-
s-rating
Dispatched for every events of this component. Check the detail.eventType prop for event type
Interface
-
namerateString
Specify a name that will be attributed to the hidden input created automatically
-
value3Number
Specify a base value for the rating
-
min1Number
Specify the minimum rate you accept
-
max5Number
Specify the maximum rate you accept
-
iconstarString
This works only if you use the "s-icon:..." class notation. Define the icon you want to use
-
iconClassString
Specify a custom icon class you want to use. If this is set, override the "icon" parameter
-
readonlyfalseBoolean
Specify if you want your rating component to just display the value and that the user cannot interact with it or not