Skip to content

BlockSuite API Documentation / @blocksuite/blocks / ReferenceNodeConfig

Class: ReferenceNodeConfig

Constructors

new ReferenceNodeConfig(undefined)

new ReferenceNodeConfig(): ReferenceNodeConfig

Returns

ReferenceNodeConfig

Properties

_Doc

private _Doc: null | Doc = null

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:13


_customContent

private _customContent: null | (reference) => TemplateResult = null

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:10


_customIcon

private _customIcon: null | (reference) => TemplateResult = null

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:7


_customTitle

private _customTitle: null | (reference) => string = null

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:9


_interactable

private _interactable: boolean = true

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:14

Accessors

customContent

get customContent(): null | (reference) => TemplateResult

Returns

null | (reference) => TemplateResult

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:28


customIcon

get customIcon(): null | (reference) => TemplateResult

Returns

null | (reference) => TemplateResult

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:16


customTitle

get customTitle(): null | (reference) => string

Returns

null | (reference) => string

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:20


doc

get doc(): null | Doc

Returns

null | Doc

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:24


interactable

get interactable(): boolean

Returns

boolean

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:32

Methods

setCustomContent()

setCustomContent(content): void

Parameters

content: null | (reference) => TemplateResult

Returns

void

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:40


setCustomIcon()

setCustomIcon(icon): void

Parameters

icon: null | (reference) => TemplateResult

Returns

void

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:44


setCustomTitle()

setCustomTitle(title): void

Parameters

title: null | (reference) => string

Returns

void

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:48


setDoc()

setDoc(doc): void

Parameters

doc: null | Doc

Returns

void

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:52


setInteractable()

setInteractable(interactable): void

Parameters

interactable: boolean

Returns

void

Source

packages/blocks/src/_common/inline/presets/nodes/reference-node/reference-config.ts:36