TaskList
This is a container for TaskList.
Component children#
Key | Component | Condition | Align | Description |
---|---|---|---|---|
contents | React component | Wrapper for the tasks list. Displays vertically: a list of static tasks according to the staticFilter prop, the TaskListFilter component and a list of all tasks that match the filter selected from the TaskListFilter component. It uses react-flip-move |
Static Properties#
Name | Type | Description |
---|---|---|
Content | DynamicContentStore<TaskList.TaskListProps> | Dynamic content store |
defaultProps | TaskList.TaskListProps | Default properties |
Component Properties#
Name | Type | Description | Optional | Default |
---|---|---|---|---|
selectedTaskSid | string | Sid of the selected task. | Yes | |
compareFunction | function | Callback to control how tasks should be sorted in task list. Negative number means task a should be above task b, positive number that a should be below b. 0 indicates equal priority. | Yes | defaultTaskOrderCompare |
staticFilter | AppConfig.TaskFilterCallback | Callback to test if a task belongs to the static area (upper area before filters) in the task list. | Yes | |
filters | Array<AppConfig.TaskFilter> | Filter tasks displayed in the list. | Yes | |
onFilterChange | function | Callback when a filter changes. | Yes | |
onTaskSelected | function | Callback when a task is selected from the list. | Yes | |
tasks | Map<string, ITask> | Tasks. | Yes | |
children | DynamicContentStore.DynamicComponentChildren<TaskList.TaskListProps> | children | Yes |