Interface DetailRendererIf<T>

Renders the content of a detail row – the object form of DetailRenderFnType, e.g. the DetailComponentRendererWrapper of the framework wrappers (React, Vue, Svelte …).

The content is created once, when the detail row becomes visible for the first time, and lives until the row is collapsed – scrolling only hides and shows it (inputs, selections and scroll positions stay).

Example

class OrderNotesRenderer implements DetailRendererIf<Order> {
render(container: HTMLDivElement, order: Order): () => void {
const textarea = document.createElement("textarea");
textarea.value = order.notes ?? "";
container.appendChild(textarea);
return () => { order.notes = textarea.value; }; // cleanup: keep the text
}
}

Since

1.1.97

Type Parameters

  • T = any

Hierarchy

  • DetailRendererIf

Methods

Methods