Skip to content

BlockSuite API Documentation / @blocksuite/blocks / DocDisplayMetaExtension

Interface: DocDisplayMetaExtension

Customize document display title and icon.

Supports the following blocks:

  • Inline View: AffineReference
  • Card View: EmbedLinkedDocBlockComponentEmbedEdgelessLinkedDocBlockComponent
  • Embed View: EmbedSyncedDocBlockComponentEmbedEdgelessSyncedDocBlockComponent

Properties

icon()

icon: (docId, referenceInfo?) => Signal<TemplateResult>

Parameters

docId

string

referenceInfo?

DocDisplayMetaParams

Returns

Signal<TemplateResult>

Defined in

packages/affine/shared/dist/services/doc-display-meta-service.d.ts:27


title()

title: (docId, referenceInfo?) => Signal<string>

Parameters

docId

string

referenceInfo?

DocDisplayMetaParams

Returns

Signal<string>

Defined in

packages/affine/shared/dist/services/doc-display-meta-service.d.ts:28