mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-2764] Updated doc files with latest script features (#3368)
* [ADF-2764] Updated doc files with latest script features * [ADF-2764] Rebuilt full index instead of just content services index
This commit is contained in:
committed by
Eugenio Romano
parent
f69bad3732
commit
c8f04193c7
@@ -12,21 +12,21 @@ Manages ratings for items in Content Services.
|
||||
|
||||
### Methods
|
||||
|
||||
- `deleteRating(nodeId: string = null, ratingType: any = null): any`<br/>
|
||||
- **deleteRating**(nodeId: `string` = `null`, ratingType: `any` = `null`): `any`<br/>
|
||||
Removes the current user's rating for a node.
|
||||
- `nodeId: string = null` - Target node
|
||||
- `ratingType: any = null` - Type of rating to remove (can be "likes" or "fiveStar")
|
||||
- _nodeId:_ `string` - Target node
|
||||
- _ratingType:_ `any` - Type of rating to remove (can be "likes" or "fiveStar")
|
||||
- **Returns** `any` - Null response indicating that the operation is complete
|
||||
- `getRating(nodeId: string = null, ratingType: any = null): any`<br/>
|
||||
- **getRating**(nodeId: `string` = `null`, ratingType: `any` = `null`): `any`<br/>
|
||||
Gets the current user's rating for a node.
|
||||
- `nodeId: string = null` - Node to get the rating from
|
||||
- `ratingType: any = null` - Type of rating (can be "likes" or "fiveStar")
|
||||
- _nodeId:_ `string` - Node to get the rating from
|
||||
- _ratingType:_ `any` - Type of rating (can be "likes" or "fiveStar")
|
||||
- **Returns** `any` - The rating value
|
||||
- `postRating(nodeId: string = null, ratingType: any = null, vote: any = null): any`<br/>
|
||||
- **postRating**(nodeId: `string` = `null`, ratingType: `any` = `null`, vote: `any` = `null`): `any`<br/>
|
||||
Adds the current user's rating for a node.
|
||||
- `nodeId: string = null` - Target node for the rating
|
||||
- `ratingType: any = null` - Type of rating (can be "likes" or "fiveStar")
|
||||
- `vote: any = null` - Rating value (boolean for "likes", numeric 0..5 for "fiveStar")
|
||||
- _nodeId:_ `string` - Target node for the rating
|
||||
- _ratingType:_ `any` - Type of rating (can be "likes" or "fiveStar")
|
||||
- _vote:_ `any` - Rating value (boolean for "likes", numeric 0..5 for "fiveStar")
|
||||
- **Returns** `any` - Details about the rating, including the new value
|
||||
|
||||
## Details
|
||||
|
||||
Reference in New Issue
Block a user