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:

Returns: {Boolean}


onHover(event,value)

Fired when the rating component is hovered.

Parameters:

  • {JSEvent} event The event object containing details about the hover event.

  • {Number} value The rating value corresponding to the hovered element.


onLeave(event,value)

Fired when the mouse leaves the rating component.

Parameters:

  • {JSEvent} event The event object containing details about the leave event.

  • {Number} value The current rating value at the time of the leave event.



Last updated

Was this helpful?