# Task Attachment List Component
Displays attached documents on a specified task.

- [Basic Usage](#basic-usage)
* [Drag and Drop Functionality](#how-to-add-drag-and-drop-functionality)
* [Properties](#properties)
* [Events](#events)
## Basic Usage
```html
```
If the List is empty, a default no content template is displayed.

### How to Add Drag and Drop Functionality
If we want user to be able to upload attachments for empty lists, We can wrap our component with upload drag area component. In that case, We should also pass a custom *no content template* as shown below with our component urging the user to drag files to upload whenever the list is empty.
```html
//no content template
{{This List is empty}}
{{Drag and drop to upload}}
```
[Upload Drag Area Component](./upload-drag-area.component.md)
If the List is empty, the custom no-content template we passed is displayed.

### Properties
| Name | Type | Description |
| --- | --- | --- |
| taskId | string | (**required**): The ID of the task to display |
| disabled | boolean | false | Disable/Enable read only mode for attachement list |
### Events
| Name | Description |
| --- | --- |
| attachmentClick | Raised when the attachment double clicked or selected view option from context menu by the user from within the component and return a Blob obj of the object clicker|
| success | Raised when the attachment list fetch all the attach and return a list of attachments |
| error | Raised when the attachment list is not able to fetch the attachments for example network error |