Class Index | File Index

Classes


Class Alfresco.Like

Extends Alfresco.component.Base
Like widget helper class.
Defined in: share.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
Like constructor.
Field Summary
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 Summary
Method Attributes Method Name and Description
 
display(isLiked, totalLikes)
 
like(isLiked)
 
NOTE! Implement when needed.
 
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.

render()
Create html that represent a like button

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Feb 16 2012 12:24:26 GMT-0000 (GMT)