Class Alfresco.DocumentActions
Extends Alfresco.component.Base
Document actions component.
Defined in: document-actions.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.DocumentActions(htmlId)
DocumentActions constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Path of asset being viewed - used to scope some actions (e.g. copy to, move to)
|
|
|
Metadata returned by doclist data webscript
|
|
|
Object container for initialization options
|
|
|
The data for the document
|
- Fields borrowed from class Alfresco.component.Base:
- modules, services, widgets
| Method Attributes | Method Name and Description |
|---|---|
|
Refresh component in response to metadataRefresh event
|
|
|
onActionCancelEditing(asset)
Cancel editing.
|
|
|
Check in a new version from Google Docs.
|
|
|
onActionCheckoutToGoogleDocs(asset)
Checkout to Google Docs.
|
|
|
onActionEditOffline(asset)
Edit Offline.
|
|
|
onActionUploadNewVersion(asset)
Upload new version.
|
|
|
onNewVersionUploadCompleteCustom(complete)
Called from the uploader component after a the new version has been uploaded.
|
|
|
onReady()
Event handler called when "onReady"
|
- Methods borrowed from class Alfresco.component.Base:
- attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.DocumentActions(htmlId)
DocumentActions constructor.
- Parameters:
- {String} htmlId
- The HTML id of the parent element
- Returns:
- {Alfresco.DocumentActions} The new DocumentActions instance
Field Detail
{string}
currentPath
Path of asset being viewed - used to scope some actions (e.g. copy to, move to)
{object}
doclistMetadata
Metadata returned by doclist data webscript
- Default Value:
- null
{object}
options
Object container for initialization options
{object}
recordData
The data for the document
Method Detail
doRefresh()
Refresh component in response to metadataRefresh event
onActionCancelEditing(asset)
Cancel editing.
- Parameters:
- {object} asset
- Object literal representing file or folder to be actioned
onActionCheckinFromGoogleDocs(asset)
Check in a new version from Google Docs.
- Parameters:
- {object} asset
- Object literal representing the file to be actioned upon
onActionCheckoutToGoogleDocs(asset)
Checkout to Google Docs.
- Parameters:
- {object} asset
- Object literal representing file or folder to be actioned
onActionEditOffline(asset)
Edit Offline.
- Parameters:
- {object} asset
- Object literal representing file or folder to be actioned
onActionUploadNewVersion(asset)
Upload new version.
- Parameters:
- {object} asset
- Object literal representing the file to be actioned upon
onNewVersionUploadCompleteCustom(complete)
Called from the uploader component after a the new version has been uploaded.
- Parameters:
- {object} complete
- Object literal containing details of successful and failed uploads
onReady()
Event handler called when "onReady"