BlockSuite API Documentation / @blocksuite/block-std / BlockSuiteViewSpec
Interface: BlockSuiteViewSpec<T>
Type parameters
• T = any
Properties
fromDOM
fromDOM: (
node
) =>null
|NodeView
<T
>
Parameters
• node: Node
Returns
null
| NodeView
<T
>
Source
packages/framework/block-std/src/view/view-store.ts:9
getChildren
getChildren: (
node
) =>Element
[]
Parameters
• node: Element
Returns
Element
[]
Source
packages/framework/block-std/src/view/view-store.ts:11
toDOM
toDOM: (
nodeView
) =>Element
Parameters
• nodeView: NodeView
<T
>
Returns
Element
Source
packages/framework/block-std/src/view/view-store.ts:10
type
type: keyof
NodeViewType
Source
packages/framework/block-std/src/view/view-store.ts:8