mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
39 lines
1.5 KiB
Markdown
39 lines
1.5 KiB
Markdown
---
|
|
Title: Checklist Component
|
|
Added: v2.0.0
|
|
Status: Active
|
|
Last reviewed: 2024-05-21
|
|
---
|
|
|
|
# Checklist Component
|
|
|
|
Shows the checklist task functionality.
|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<adf-checklist
|
|
[readOnly]="false"
|
|
[taskId]="taskId"
|
|
[assignee]="taskAssignee.id">
|
|
</adf-checklist>
|
|
```
|
|
|
|
## Class members
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
|----------|-----------|---------------|-----------------------------------------------------------------------------------------|
|
|
| assignee | `string` | | (required) The assignee id that the subtasks are assigned to. |
|
|
| readOnly | `boolean` | false | Toggle readonly state of the form. All form widgets will render as readonly if enabled. |
|
|
| taskId | `string` | | (required) The id of the parent task to which subtasks are attached. |
|
|
|
|
### Events
|
|
|
|
| Name | Type | Description |
|
|
|----------------------|------------------------------------|-----------------------------------------------|
|
|
| checklistTaskCreated | `EventEmitter<TaskRepresentation>` | Emitted when a new checklist task is created. |
|
|
| checklistTaskDeleted | `EventEmitter<string>` | Emitted when a checklist task is deleted. |
|
|
| error | `EventEmitter<any>` | Emitted when an error occurs. |
|