Skip to content

BlockSuite API Documentation / @blocksuite/blocks / referenceToNode

Function: referenceToNode()

referenceToNode(__namedParameters): boolean

Returns true if it is a link to block or element.

Parameters

__namedParameters

description

null | string

pageId

string

params

{ blockIds: string[]; databaseId: string; databaseRowId: string; elementIds: string[]; mode: "edgeless" | "page"; }

params.blockIds

string[]

params.databaseId

string

params.databaseRowId

string

params.elementIds

string[]

params.mode

"edgeless" | "page"

title

null | string

Returns

boolean

Defined in

packages/affine/components/dist/rich-text/inline/presets/nodes/reference-node/utils.d.ts:20