Skip to content

CodeBlockBuilderPreviewParams

The parameters of ShowCodeBlockBuilderParams.onUpdatePreview.

Import:

import type { CodeBlockBuilderPreviewParams } from '@mnaoumov/obsidian-lib/modals/code-block-builder';

Signature:

export interface CodeBlockBuilderPreviewParams

Properties

PropertyTypeDescription
codeBlockstringThe code block as it stands.
previewElHTMLElementThe element to draw the preview into. The modal never clears it.
valuesReadonlyMap<string, CodeBlockBuilderValue>The current value of every field, by its key.

Links to this page: