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
inlineEditor
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
inlineEditor
Returns
insertLinkedNode()
insertLinkedNode: (
__namedParameters
) =>void
Parameters
__namedParameters
docId
string
inlineEditor
Returns
void
Defined in
packages/blocks/src/root-block/widgets/linked-doc/config.ts:234