Class Alfresco.LinksView
Extends Alfresco.component.Base
LinksView component.
Component to view a link
Component to view a link
Defined in: linksview.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.LinksView(htmlId)
LinksView constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Tells whether an action is currently ongoing.
|
|
|
Stores the data displayed by this component
|
|
|
Object container for initialization options
|
|
|
Object literal used to generate unique tag ids
|
- Fields borrowed from class Alfresco.component.Base:
- modules, services, widgets
| Method Attributes | Method Name and Description |
|---|---|
|
generateLinksViewUrl(linkId, container, linkId)
Generate a view url for a given site, link id.
|
|
|
loadLinksDataSuccess(response)
Success handler for a link request. Updates the UI using the link data
|
|
|
onDeleteLink(linkId)
Link deletion implementation
|
|
|
onEditLink(linkId)
Loads the edit link form and displays it instead of the content
|
|
|
onLinkElementMouseEntered(layer, args)
Called when the mouse enters into a list item.
|
|
|
onLinkElementMouseExited(layer, args)
Called whenever the mouse exits a list item.
|
|
|
onReady()
Fired by YUI when parent element is available for scripting.
|
|
|
onTagSelected(tagId, target)
Tag selected handler.
|
|
|
renderLinks(data)
Renders the links.
|
|
|
Sends out a setCommentedNode bubble event.
|
- Methods borrowed from class Alfresco.component.Base:
- attachLinkClickListeners, bind, createYUIButtons, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.LinksView(htmlId)
LinksView constructor.
- Parameters:
- {String} htmlId
- The HTML id of the parent element
- Returns:
- {Alfresco.LinksView} The new LinksView instance
Field Detail
{boolean}
busy
Tells whether an action is currently ongoing.
- See:
- setBusy/releaseBusy
linksData
Stores the data displayed by this component
{object}
options
Object container for initialization options
{object}
tagId
Object literal used to generate unique tag ids
Method Detail
generateLinksViewUrl(linkId, container, linkId)
Generate a view url for a given site, link id.
- Parameters:
- linkId
- the id/name of the link
- container
- linkId
- Returns:
- an url to access the link
loadLinksDataSuccess(response)
Success handler for a link request. Updates the UI using the link data
provided in the response object.
provided in the response object.
- Parameters:
- {object} response
- the ajax request response
onDeleteLink(linkId)
Link deletion implementation
- Parameters:
- {string} linkId
- the id of the link to delete
onEditLink(linkId)
Loads the edit link form and displays it instead of the content
- Parameters:
- linkId
onLinkElementMouseEntered(layer, args)
Called when the mouse enters into a list item.
- Parameters:
- layer
- args
onLinkElementMouseExited(layer, args)
Called whenever the mouse exits a list item.
- Parameters:
- layer
- args
onReady()
Fired by YUI when parent element is available for scripting.
Component initialisation, including instantiation of YUI widgets and event listener binding.
Component initialisation, including instantiation of YUI widgets and event listener binding.
onTagSelected(tagId, target)
Tag selected handler.
- Parameters:
- {string} tagId
- Tag name.
- {HTMLElement} target
- Target element clicked.
renderLinks(data)
Renders the links.
- Parameters:
- data
sendCommentedNodeEvent()
Sends out a setCommentedNode bubble event.