Vizel API / core/src / VizelTaskItemOptions
Interface: VizelTaskItemOptions
Defined in: packages/core/src/extensions/task-list.ts:17
Properties
HTMLAttributes?
ts
optional HTMLAttributes?: Record<string, unknown>;Defined in: packages/core/src/extensions/task-list.ts:21
HTML attributes to add to the task item element
nested?
ts
optional nested?: boolean;Defined in: packages/core/src/extensions/task-list.ts:26
Whether the task item checkbox is nested inside a label
Default
ts
trueonReadOnlyChecked?
ts
optional onReadOnlyChecked?: (node, checked) => boolean;Defined in: packages/core/src/extensions/task-list.ts:30
A callback triggered when a task item is clicked (checked/unchecked)
Parameters
| Parameter | Type |
|---|---|
node | unknown |
checked | boolean |
Returns
boolean