mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
* [ADF-2847] Added class members heading to content services docs * [ADF-2847] Updated all prop/method tables in content services
38 lines
687 B
Markdown
38 lines
687 B
Markdown
---
|
|
Added: v2.0.0
|
|
Status: Active
|
|
---
|
|
|
|
# Rating component
|
|
|
|
Allows a user to add ratings to an item.
|
|
|
|

|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<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>` | Emitted when the "vote" gets changed. |
|
|
|
|
## See also
|
|
|
|
- [Like component](like.component.md)
|
|
- [Rating service](rating.service.md)
|