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

Function SliceInHtmlTable

src/ui-solid-dom/SliceInHtmlTable.tsx:26–54  ·  view source on GitHub ↗
(
  props: SliceInHtmlTableProps & HtmlTableProps,
)

Source from the content-addressed store, hash-verified

24import {EditableCellView} from './EditableCellView.tsx';
25
26export const SliceInHtmlTable: typeof SliceInHtmlTableDecl = (
27 props: SliceInHtmlTableProps & HtmlTableProps,
28): JSXElement => {
29 const resolvedIndexes = useIndexesOrIndexesById(() => props.indexes);
30 const details = createMemo(() =>
31 getIndexStoreTableId(resolvedIndexes(), props.indexId),
32 );
33 return HtmlTable({
34 ...props,
35 params: getParams(
36 useCells(
37 useTableCellIds(
38 () => details()[2] as Id,
39 () => details()[1],
40 ),
41 props.customCells,
42 () => (props.editable ? EditableCellView : CellView),
43 ),
44 getStoreCellComponentProps(details()[1], details()[2] as Id),
45 useSliceRowIds(
46 () => props.indexId,
47 () => props.sliceId,
48 resolvedIndexes,
49 ),
50 props.extraCellsBefore,
51 props.extraCellsAfter,
52 ),
53 });
54};

Callers

nothing calls this directly

Calls 8

useIndexesOrIndexesByIdFunction · 0.90
getIndexStoreTableIdFunction · 0.90
HtmlTableFunction · 0.90
getParamsFunction · 0.90
useCellsFunction · 0.90
useTableCellIdsFunction · 0.90
useSliceRowIdsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…