Rating
(part of package 'Bootstrap Extra Components') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent
A component that provides a rating interface for displaying and collecting a numerical score.
This is a reference page; many components have detailed usage guides here.
Properties
dataProviderID
Bound data provider identifier for the rating value. Type: Dataprovider
enabled
Flag indicating whether the rating component is enabled for user interaction. Type: Enabled Default Value: true
location
The position of the rating component on the form. Type: Point
max
The maximum rating value allowed. Type: Number Default Value: 5
showPercentageOnHover
When true, displays the rating value as a percentage on hover. Type: Boolean
stateOff
The representation (for example, an icon or symbol) for an inactive (unselected) rating state. Type: String
stateOn
The representation (for example, an icon or symbol) for an active (selected) rating state. Type: String
visible
Flag indicating whether the rating component is visible. Type: Boolean Default Value: true
Events
onDataChangeMethodID(oldValue,newValue,event)
Handle changed data, return false if the value should not be accepted. JSEvent.data will contain extra information about dataproviderid, its scope and the scope id (record datasource or form/global variable scope)
Parameters:
{${dataproviderType}} oldValue The previous rating value.
{${dataproviderType}} newValue The new rating value to be set.
{JSEvent} event The event object associated with the data change.
Returns: {Boolean}
onHover(event,value)
Fired when the rating component is hovered.
Parameters:
onLeave(event,value)
Fired when the mouse leaves the rating component.
Parameters:
Last updated
Was this helpful?