-
Guide
Tags
API
What's new
tags
- Introduction
Objects
- Audio
- AudioPlus
- HyperText
- Image
- Paragraphs
- Text
- TimeSeries
Controls
- BrushLabels
- Choice
- Choices
- Ellipse
- EllipseLabels
- HyperTextLabels
- KeyPoint
- KeyPointLabels
- Label
- Labels
- List
- Pairwise
- ParagraphLabels
- Polygon
- PolygonLabels
- Ranker
- Rating
- Rectangle
- RectangleLabels
- Relation
- Relations
- Shortcut
- TextArea
- Taxonomy
- TimeSeriesLabels
- Filter
Visual
- Header
- Style
- Table
- View
Rating
Rating adds rating selection
Parameters
Param | Type | Default | Description |
---|---|---|---|
name | string |
Name of the element | |
toName | string |
Name of the element that you want to label | |
[maxRating] | number |
5 |
Maximum rating value |
[defaultValue] | number |
0 |
Default rating value |
[size] | string |
"medium" |
One of: small, medium, large |
[icon] | string |
"start" |
One of: star, heart, fire, smile |
hotkey | string |
HotKey for changing rating value | |
[required] | boolean |
false |
validation if rating is required |
[requiredMessage] | string |
message to show if validation fails | |
[perRegion] | boolean |
use this tag for region labeling instead of the whole object labeling |
Example
<View>
<Text name="txt" value="$text" />
<Rating name="rating" toName="txt" maxRating="10" icon="star" size="medium" />
</View>