Skip to content

ChecklistContent

Things to tick off: a to-do list, a packing list, the steps of a release. Every item gets a box the person ticks from the notch, which comes back to onAction as CHECKLIST.check or .uncheck with the item’s id as itemId. The box shows ticked at once; your next update decides, so emit the list as it now is. The notch never sorts it: what’s done stays where you put it. At most MAX_CHECKLIST_ITEMS items are kept. applyChecklistAction does the bookkeeping for a list you keep yourself.

optional addable?: boolean

A field ends the opened list and its card: what’s typed comes back as add, the text as input. Quick Add and the notch’s search can then put a line on it too, the same way.


optional editable?: boolean

Items can be renamed where they are (rename, the new title as input), taken off (remove), dragged into order (move, the new position from 0 as input), and the ticked ones cleared (clear, no itemId).


items: ChecklistItem[]


optional placeholder?: string

The add field’s words, "Add a task".