mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
* [ADF-4552] Rating component refactoring, add ability to unRate * [ADF-4552] RTL support added * [ADF-4552] Improve behaviour and styling structure in RTL languages * [ADF-4552] Improve behaviour and styling structure in RTL languages * [ADF-4552] Added refresh rating when the node Id input changes * [ADF-4552][ADF-4482] Refactor social component, add ability to unrate, add e2e automation * [ADF-4552][ADF-4482] Added unsibscribe from Observables, added css variables, removed unused class id's * [ADF-4552][ADF-4482] Improve structure and behaviour of e2e automation tests * [ADF-4552][ADF-4482] Improve structure and behaviour of e2e automation tests * [ADF-4552][ADF-4482] fix expected single space * [ADF-4552][ADF-4482] fix lint check failure * Fix circular dependency error
1.3 KiB
1.3 KiB
Title, Added, Status, Last reviewed
Title | Added | Status | Last reviewed |
---|---|---|---|
Rating component | v2.0.0 | Active | 2019-01-14 |
Rating component
Allows a user to add and remove rating to an item. It displays the average rating and the number of ratings. If the user has not rated the item the average rating stars color is grey.
If the user has rated the item the average rating stars color is yellow.
In order to remove the rating the user should click on the same star that he rated. If the average is decimal number it will be rounded.
Basic Usage
<adf-rating
[nodeId]="'74cd8a96-8a21-47e5-9b3b-a1b3e296787d'">
</adf-rating>
Class members
Properties
Name | Type | Default value | Description |
---|---|---|---|
nodeId | string |
Identifier of the node to apply the rating to. |
Events
Name | Type | Description |
---|---|---|
changeVote | EventEmitter <Object> |
Average rating is emitted when the "vote" gets changed. |