mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-02 17:53:30 +00:00
* [ADF-4152] Moved content services docs to subfolders * [ADF-4152] Manual URL fixes for cont services docs * [ADF-4152] Moved content services docs to subfolders * [ADF-4152] Manual URL fixes for cont services docs * [ADF-4152] Updated doc index pages for content services
40 lines
928 B
Markdown
40 lines
928 B
Markdown
---
|
|
Title: Rating component
|
|
Added: v2.0.0
|
|
Status: Active
|
|
Last reviewed: 2019-01-14
|
|
---
|
|
|
|
# [Rating component](../../../lib/content-services/social/rating.component.ts "Defined in rating.component.ts")
|
|
|
|
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`](https://angular.io/api/core/EventEmitter)`<Object>` | Emitted when the "vote" gets changed. |
|
|
|
|
## See also
|
|
|
|
- [Like component](like.component.md)
|
|
- [Rating service](../services/rating.service.md)
|