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

Function extraRowCells

src/ui-react-dom/common/index.tsx:66–75  ·  view source on GitHub ↗
(
  extraRowCells: ExtraRowCell[] = [],
  extraRowCellProps: RowProps,
  after: 0 | 1 = 0,
)

Source from the content-addressed store, hash-verified

64export const EDITABLE = 'editable';
65
66export const extraRowCells = (
67 extraRowCells: ExtraRowCell[] = [],
68 extraRowCellProps: RowProps,
69 after: 0 | 1 = 0,
70) =>
71 arrayMap(extraRowCells, ({component: Component}, index) => (
72 <td className={EXTRA} key={extraKey(index, after)}>
73 <Component {...extraRowCellProps} />
74 </td>
75 ));
76
77export const extraKey = (index: number, after: 0 | 1) =>
78 (after ? '>' : '<') + index;

Callers 2

RelationshipInHtmlRowFunction · 0.90
HtmlTableFunction · 0.90

Calls 2

arrayMapFunction · 0.90
extraKeyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…