mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* [ADF-1769] Added prop tables and fixed script * [ADF-1769] Corrected JSDoc formatting errors * [ADF-1769] Restored default column to prop tables
29 lines
605 B
Markdown
29 lines
605 B
Markdown
# ADF Like component
|
|
|
|
Allows a user to add "likes" to an item.
|
|
|
|

|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<adf-like [nodeId]="nodeId"></adf-like>
|
|
```
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| ---- | ---- | ------------- | ----------- |
|
|
| nodeId | `string` | | Identifier of a node to apply likes to. |
|
|
|
|
### Events
|
|
|
|
| Name | Type | Description |
|
|
| ---- | ---- | ----------- |
|
|
| changeVote | `EventEmitter<{}>` | Emitted when the "vote" gets changed. |
|
|
|
|
## See also
|
|
|
|
- [Rating component](rating.component.md)
|
|
- [Rating service](rating.service.md)
|