Class Index | File Index

Classes


Class Alfresco.Favourite

Extends Alfresco.component.Base
Favourite widget helper class.
Defined in: share.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
Favourite constructor.
Field Summary
Field Attributes Field Name and Description
 
If the current user favourites the nodeRef
 
Object container for initialization options
Fields borrowed from class Alfresco.component.Base:
modules, services, widgets
Method Summary
Method Attributes Method Name and Description
 
display(isFavourite)
Display the favourite widget as a favourite or not depending on the isFavourite parameter
 
favourite(isFavourite)
 
NOTE! Implement when needed.
 
Create html that represent a favourite button
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.Favourite(el)
Favourite constructor.
Parameters:
{String} el
The HTML id of the parent element
Returns:
{Alfresco.Favourite} The new Favourite instance
Field Detail
isFavourite
If the current user favourites the nodeRef

{object} options
Object container for initialization options
Method Detail
display(isFavourite)
Display the favourite widget as a favourite or not depending on the isFavourite parameter
Parameters:
{string} isFavourite

favourite(isFavourite)
Parameters:
isFavourite

loadAndDisplay()
NOTE! Implement when needed.

Set id, load Like data and render.

render()
Create html that represent a favourite button

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