Unity 8
|
Preview widget for rating. More...
Public Member Functions | |
void | submit () |
Additional Inherited Members | |
![]() | |
void | triggered (string widgetId, string actionId, var data) |
This signal should be emitted when a preview action was triggered. More... | |
![]() | |
bool | isCurrentPreview |
Specifies the preview widget being currently used or not. | |
string | widgetId |
The widget identifier. | |
var | widgetData |
Variable used to contain widget's data. | |
var | scopeStyle |
The ScopeStyle component. | |
Preview widget for rating.
The widget can show a rating widget and a field to enter a comment. The visibility of the two widgets is specified by widgetData["visible"], accepting "both", "rating" or "review". The requirement of the review is specified by widgetData["visible"], accepting "both", "rating" or "review". It is possible to customise labels, widgetData["rating-label"] for the rating, widgetData["rewiew-label"] for the comment field and widgetData["submit-label"] for the submit button. The icons used in the rating widget can be customised with widgetData["rating-icon-empty"] and widgetData["rating-icon-full"]. The successeful submit emits triggered(widgetId, widgetData["required"], data), with data being {"rating": rating value, "review": review comment, "author": null (for now)}.
Definition at line 31 of file PreviewRatingInput.qml.