Class Alfresco.Favourite
Extends Alfresco.component.Base
Favourite widget helper class.
Defined in: share.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Favourite constructor.
|
| 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 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.
|
|
|
render()
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.
Set id, load Like data and render.
render()
Create html that represent a favourite button