ShowCodeBlockBuilderParams
The parameters of showCodeBlockBuilder.
Import:
import type { ShowCodeBlockBuilderParams } from '@mnaoumov/obsidian-lib/modals/code-block-builder';Signature:
export interface ShowCodeBlockBuilderParams extends ModalParamsBaseExtends: ModalParamsBase
Properties
| Property | Type | Description |
|---|---|---|
| app | App | An Obsidian app instance. (Inherited from ModalParamsBase) |
| cssClasses? | string[] | A CSS class to apply to the modal. (Inherited from ModalParamsBase) |
| editor? | Editor | null | The editor the Insert button writes into. |
| fields | readonly CodeBlockBuilderInput[] | The fields of the code block, in the order they are written into it. Required fields are shown first. |
| language | string | The language of the code block: the text after its opening fence. |
| onUpdatePreview? | (params: CodeBlockBuilderPreviewParams) => void | Draws a live preview of the code block. Called once when the modal opens and again after every change. |
| title? | string | The title of the modal. |
Links to this page: