Skip to content

MasterDetailConfig

Since v1.8.2

Master-detail config widened to accept a React detailRenderer (row, rowIndex) => ReactNode in addition to the vanilla (row, rowIndex) => HTMLElement | string signature. Bridging to vanilla DOM is handled by the side-effect import @toolbox-web/grid-react/features/master-detail.

Re-exported under the same name as the core type so React users see a single canonical MasterDetailConfig from @toolbox-web/grid-react.

type MasterDetailConfig = Omit<CoreMasterDetailConfig, "detailRenderer"> & { detailRenderer?: CoreMasterDetailConfig["detailRenderer"] | (row: Record<string, unknown>, rowIndex: number) => ReactNode }