All Classes Functions Properties
PreviewRatingInput Class Reference

Preview widget for rating. More...

Inheritance diagram for PreviewRatingInput:
[legend]
Collaboration diagram for PreviewRatingInput:
[legend]

## Public Member Functions

void | submit ()

## Additional Inherited Members

Signals inherited from PreviewWidget
void | triggered (string widgetId, string actionId, var data)
| This signal should be emitted when a preview action was triggered. More...
Properties inherited from PreviewWidget
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.

## Detailed Description

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.

The documentation for this class was generated from the following file:

- qml/Dash/Previews/PreviewRatingInput.qml