Skip to content

DataviewInlineApi.paragraph method

DataviewInlineApi › paragraph

Creates a paragraph HTML element with the provided text and optional DOM element options.

Signature:

paragraph(text: unknown, options?: DomElementInfoWithContainer | undefined): HTMLParagraphElement

Parameters:

ParameterTypeDescription
textunknownThe content of the paragraph.
options?DomElementInfoWithContainer | undefinedOptional DOM element options, including an optional container.

Returns: HTMLParagraphElementThe created HTML paragraph element.