Calm motion: animations on this site only fade, with no movement
Task list
Tasks with check boxes, an assignee, a due date, and subtasks
Keeps the to-do list of a team, for example the work on one episode. Open tasks stay at the top, and done tasks go to the bottom. For steps that a new user must do once, use the onboarding checklist.
Basic
- 1 of 3due Nov 14 · late
- due Nov 18
- due Nov 20
v-modelis the list of tasks. Each task has anidand atitle. It can also havedone,subtasks, and aduedate asYYYY-MM-DD. Anassigneehas anameand anavatar.- Each task and each subtask has a native check box. A done task is gray and struck through, and it goes to the bottom of the list.
- A task with subtasks shows how many are done, such as "1 of 3".
- If the due date of an open task is before today, the date turns red and says "late".
todaysets today. Without it, the list uses today of the reader, after the page loads. - With
addable(on by default), a field shows at the bottom. If the reader types a title and presses Enter, the field adds the task. localesets the format of the dates (default English). Change the words withlabelsor a label pack:title,add,late, and the functionsdueandsubtasks.
Usage
ts
import { BlessTaskList } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
today | string | — | today as YYYY-MM-DD, for late tasks; default: today of the reader, after mount |
locale | string | "en" | |
addable | boolean | true | show a field that adds a task |
labels | Partial<{ title: string; add: string; late: string; due: (date: string) => string; subtasks: (done: number, total: number) => string; }> | — | |
modelValue | BlessTask[] | [] |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: BlessTask[]] |