MCPcopy Index your code
hub / github.com/tinyplex/tinybase / extraValueCells

Function extraValueCells

src/ui-solid-dom/ValuesInHtmlTable.tsx:19–30  ·  view source on GitHub ↗
(
  extraValueCells: ExtraValueCell[] | (() => ExtraValueCell[] | undefined) = [],
  extraValueCellProps: ValueProps,
)

Source from the content-addressed store, hash-verified

17import {extraHeaders} from './common/index.tsx';
18
19const extraValueCells = (
20 extraValueCells: ExtraValueCell[] | (() => ExtraValueCell[] | undefined) = [],
21 extraValueCellProps: ValueProps,
22) =>
23 arrayMap(getValue(extraValueCells) ?? [], (extraValueCell) => {
24 const Component = extraValueCell.component;
25 return (
26 <td class={EXTRA}>
27 <Component {...extraValueCellProps} />
28 </td>
29 );
30 });
31
32export const ValuesInHtmlTable: typeof ValuesInHtmlTableDecl = (
33 props: ValuesInHtmlTableProps & HtmlTableProps,

Callers 1

ValuesInHtmlTableFunction · 0.70

Calls 2

arrayMapFunction · 0.90
getValueFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…