Class icm.pgwidget.attachment.Attachment


Extends icm.pgwidget.attachment.dijit.AttachmentContentPane, icm.pgwidget.attachment._AttachmentCoordinationMixin, icm.base.BasePageWidget.
Displays attachments of a work item.
Defined in: <icm/pgwidget/attachment/Attachment.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Method Summary

Method Attributes Method Name and Description
 
Handler for icm.AddAttachment event.
 
Handler for icm.clearContent event.
 
Handler for the icm.SendNewTaskInfo event.
 
Handler for the icm.SendWorkItem event.

Constructor Detail

icm.pgwidget.attachment.Attachment()

Method Detail

handleICM_AddAttachmentEvent(payload)

Handler for icm.AddAttachment event.
Parameters:
payload
  • attachmentName: Attachment ID
  • documents: Documents to be added, expects each document to be a ecm.model.contentItem object.

handleICM_ClearContentEvent()

Handler for icm.clearContent event.

handleICM_SendNewTaskInfoEvent(payload)

Handler for the icm.SendNewTaskInfo event. Attachment widget will display the attachment associated with the task.
Parameters:
payload
Example: payload = { "taskEditable": taskEditable, "coordination": coordination };

handleICM_SendWorkItemEvent(payload)

Handler for the icm.SendWorkItem event. Attachment widget will display the attachment associated with the work item.
Parameters:
payload
Example: payload = { "workItemEditable": workItemEditable, "coordination": coordination };