LitRendererDirective

external class LitRendererDirective

A Lit directive that connects a renderer callback to a Vaadin component.

This is the low-level directive used by the components' renderer properties. In Kotlin/JS the renderer callbacks themselves are ordinary lambdas assigned to the generated renderer properties, so the directive is rarely needed directly.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Adds the renderer callback to the element.

Link copied to clipboard

Removes the renderer callback from the element.

Link copied to clipboard
fun render(renderer: LitRenderer, value: JsAny? = definedExternally): JsAny

Runs the renderer callback with the current value.

Link copied to clipboard
fun renderRenderer(container: Element, vararg args: JsAny?)

Renders the result of a renderer callback into a container.

Link copied to clipboard

Runs the renderer callback on the element.

Link copied to clipboard
fun update(part: JsAny, props: Array<JsAny?>): JsAny

Updates the directive part with the renderer and its value.