Class Alfresco.Like
Extends Alfresco.component.Base
Like widget helper class.
Defined in: share.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.Like(el)
Like constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
If the current user likes the nodeRef
|
|
|
Object container for initialization options
|
|
|
The total amount of users that like nodeRef
|
- Fields borrowed from class Alfresco.component.Base:
- modules, services, widgets
| Method Attributes | Method Name and Description |
|---|---|
|
display(isLiked, totalLikes)
|
|
|
like(isLiked)
|
|
|
NOTE! Implement when needed.
|
|
|
render()
Create html that represent a like button
|
- Methods borrowed from class Alfresco.component.Base:
- attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.Like(el)
Like constructor.
- Parameters:
- {String} el
- The HTML id of the parent element
- Returns:
- {Alfresco.Like} The new Like instance
Field Detail
isLiked
If the current user likes the nodeRef
{object}
options
Object container for initialization options
totalLikes
The total amount of users that like nodeRef
Method Detail
display(isLiked, totalLikes)
- Parameters:
- {string} isLiked
- {string} totalLikes
like(isLiked)
- Parameters:
- isLiked
loadAndDisplay()
NOTE! Implement when needed.
Set id, load Like data and render.
Set id, load Like data and render.
render()
Create html that represent a like button