Supervisor․TaskCard
This is a container for TaskCard.
Can be themed with Theme.TaskCard in Theme.
Component children#
| Key | Component | Condition | Align | Description |
|---|---|---|---|---|
| icon | styled(div) | Wrapper for TaskCard icon | ||
| content | styled(div) | Wrapper for TaskCard content. Displays firstLine and secondLine from props or, if not provided, first line and second line templates from task channel definition |
Static Properties#
| Name | Type | Description |
|---|---|---|
| Content | DynamicContentStore<TaskCard.TaskCardChildrenProps, SupervisorTaskCardChildrenKeys> | Dynamic content store |
Component Properties#
| Name | Type | Description | Optional | Default |
|---|---|---|---|---|
| icon | string | React.ReactNode | Task Card icon. | Yes | |
| firstLine | React.ReactChild | Task Card first line. | Yes | |
| secondLine | React.ReactChild | Task Card second line. | Yes | |
| onClick | function | Callback called when task is selected. | Yes | |
| highlighted | boolean | Whether the task card is highlighted or no. | Yes | |
| selected | boolean | Whether the task card is selected or no. | Yes | |
| children | DynamicContentStore.DynamicComponentChildren<TaskCardChildrenProps> | children | Yes |
Rate this page