Type alias DetailRenderFnType<T>

DetailRenderFnType<T>: ((container, row, context) => (() => void) | void)

Type Parameters

  • T = any

Type declaration

    • (container, row, context): (() => void) | void
    • 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).

      Parameters

      Returns (() => void) | void

      Example

      const renderDetail: DetailRenderFnType<Order> = (container, order) => {
      container.textContent = `${order.items.length} items, ordered on ${order.date}`; // textContent: no HTML injection
      };

      Since

      1.1.97