Class Alfresco.Location
Extends Alfresco.component.Base
Asset location helper class.
Defined in: share.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Location constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Object container for initialization options
|
- Fields borrowed from class Alfresco.component.Base:
- modules, services, widgets
| Method Attributes | Method Name and Description |
|---|---|
|
displayByNodeRef(nodeRef)
Set nodeRef, will lookup the cntext of the nodeRef and display the result depending
|
|
|
displayByPath(fullPath, siteId, siteTitle)
Renders the location path as HTML
|
|
|
generateHTML(fullPath, siteId, siteTitle)
Create html that represent a path and site
|
|
|
onReady()
Fired by YUI when parent element is available for scripting.
|
- Methods borrowed from class Alfresco.component.Base:
- attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.Location(el)
Location constructor.
- Parameters:
- {String} el
- The HTML id of the parent element
- Returns:
- {Alfresco.Location} The new Location instance
Field Detail
{object}
options
Object container for initialization options
Method Detail
displayByNodeRef(nodeRef)
Set nodeRef, will lookup the cntext of the nodeRef and display the result depending
on the scope of the options (site and rootNode).
on the scope of the options (site and rootNode).
- Parameters:
- nodeRef
- {Alfresco.util.NodeRef|string}
displayByPath(fullPath, siteId, siteTitle)
Renders the location path as HTML
- Parameters:
- {string} fullPath
- {string} siteId
- {string} siteTitle
{string}
generateHTML(fullPath, siteId, siteTitle)
Create html that represent a path and site
- Parameters:
- fullPath
- siteId
- siteTitle
- Returns:
- {string} html respresenting path and site as span elements
onReady()
Fired by YUI when parent element is available for scripting.
Template initialisation, including instantiation of YUI widgets and event listener binding.
Template initialisation, including instantiation of YUI widgets and event listener binding.