Renders the content of a detail row – a function (see DetailRendererIf). It may return a cleanup function, called when the detail row is destroyed (collapsed, too many rendered details, new table model).
const renderDetail: DetailRenderFnType<Order> = (container, order) => { container.textContent = `${order.items.length} items, ordered on ${order.date}`; // textContent: no HTML injection}; Copy
const renderDetail: DetailRenderFnType<Order> = (container, order) => { container.textContent = `${order.items.length} items, ordered on ${order.date}`; // textContent: no HTML injection};
1.1.97
Renders the content of a detail row – a function (see DetailRendererIf). It may return a cleanup function, called when the detail row is destroyed (collapsed, too many rendered details, new table model).