Module: @lexical/list
Classes
Type Aliases
ListType
Ƭ ListType: "number"
| "bullet"
| "check"
Defined in
packages/lexical-list/src/LexicalListNode.ts:49
SerializedListItemNode
Ƭ SerializedListItemNode: Spread
<{ checked
: boolean
| undefined
; value
: number
}, SerializedElementNode
>
Defined in
packages/lexical-list/src/LexicalListItemNode.ts:46
SerializedListNode
Ƭ SerializedListNode: Spread
<{ listType
: ListType
; start
: number
; tag
: ListNodeTagType
}, SerializedElementNode
>
Defined in
packages/lexical-list/src/LexicalListNode.ts:40
Variables
INSERT_CHECK_LIST_COMMAND
• Const
INSERT_CHECK_LIST_COMMAND: LexicalCommand
<void
>
Defined in
packages/lexical-list/src/index.ts:45
INSERT_ORDERED_LIST_COMMAND
• Const
INSERT_ORDERED_LIST_COMMAND: LexicalCommand
<void
>
Defined in
packages/lexical-list/src/index.ts:42
INSERT_UNORDERED_LIST_COMMAND
• Const
INSERT_UNORDERED_LIST_COMMAND: LexicalCommand
<void
>
Defined in
packages/lexical-list/src/index.ts:40
REMOVE_LIST_COMMAND
• Const
REMOVE_LIST_COMMAND: LexicalCommand
<void
>
Defined in
packages/lexical-list/src/index.ts:48
Functions
$createListItemNode
▸ $createListItemNode(checked?
): ListItemNode
Creates a new List Item node, passing true/false will convert it to a checkbox input.
Parameters
Name | Type | Description |
---|---|---|
checked? | boolean | Is the List Item a checkbox and, if so, is it checked? undefined/null: not a checkbox, true/false is a checkbox and checked/unchecked, respectively. |