Task List
CRM · TaskList, Panel
To-dos with a due date, assignee, priority and the record they belong to, grouped into overdue, today, upcoming, without a date and done.
onToggle(id, done)completes a task;onOpen(id)makes its title a button.grouped={false}gives one flat list, for a record's side panel.
Tasks
Overdue 1
- ME
Today 2
- ME
- JP
Upcoming 1
- LB
No date 1
Done 1
- JP
Props
TaskList
| Prop | Type | Notes |
|---|---|---|
tasks | CrmTask[] | Required |
today? | Date | string | number | The day that counts as today; pass it so server and client render the same. |
onToggle? | (id: string, done: boolean) => void | |
onOpen? | (id: string) => void | |
grouped? | boolean | Groups: overdue, today, upcoming, no date, done (default true). |
label? | string | Accessible name (default "Tasks"). |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Panel
| Prop | Type | Notes |
|---|---|---|
side? | boolean | |
title? | string | |
subtitle? | string | |
action? | ReactNode | |
children? | ReactNode | |
surface? | Surface | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |