Skip to content

ResultRenderer

Attaches to a container and renders values. Used to render the result of a JsExecution.

Constructors

new ResultRenderer()

new ResultRenderer(plugin, container, sourcePath, component): ResultRenderer

Parameters

Parameter Type

plugin

JsEnginePlugin

container

HTMLElement

sourcePath

string

component

Component

Returns

ResultRenderer

Defined in

jsEngine/engine/ResultRenderer.ts:20

Properties

component

readonly component: Component

Defined in

jsEngine/engine/ResultRenderer.ts:18


container

readonly container: HTMLElement

Defined in

jsEngine/engine/ResultRenderer.ts:16


plugin

readonly plugin: JsEnginePlugin

Defined in

jsEngine/engine/ResultRenderer.ts:15


sourcePath

readonly sourcePath: string

Defined in

jsEngine/engine/ResultRenderer.ts:17

Methods

convertToSimpleObject()

convertToSimpleObject(value): unknown

Converts the given value to a simple object. E.g. a MarkdownBuilder will be converted to a string.

Parameters

Parameter Type Description

value

unknown

The value to convert.

Returns

unknown

The simple object.

Defined in

jsEngine/engine/ResultRenderer.ts:92


render()

render(value): Promise<void>

Renders the given value to the container.

Parameters

Parameter Type Description

value

unknown

The value to render.

Returns

Promise<void>

Defined in

jsEngine/engine/ResultRenderer.ts:32