Skip to content

BlockSuite API Documentation / @blocksuite/blocks / LinkedWidgetUtils

Variable: LinkedWidgetUtils

const LinkedWidgetUtils: object

Type declaration

createLinkedDocMenuGroup()

createLinkedDocMenuGroup: (query, abort, editorHost, inlineEditor) => object

Parameters

query

string

abort

() => void

editorHost

EditorHost

inlineEditor

AffineInlineEditor

Returns

object

items

items: object[]

maxDisplay

maxDisplay: number = MAX_DOCS

name

name: string = 'Link to Doc'

overflowText

overflowText: string

createNewDocMenuGroup()

createNewDocMenuGroup: (query, abort, editorHost, inlineEditor) => LinkedMenuGroup

Parameters

query

string

abort

() => void

editorHost

EditorHost

inlineEditor

AffineInlineEditor

Returns

LinkedMenuGroup

insertLinkedNode()

insertLinkedNode: (__namedParameters) => void

Parameters

__namedParameters
docId

string

inlineEditor

AffineInlineEditor

Returns

void

Defined in

packages/blocks/src/root-block/widgets/linked-doc/config.ts:234