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

Function SliceInHtmlTable

src/ui-react-dom/SliceInHtmlTable.tsx:22–52  ·  view source on GitHub ↗
({
  indexId,
  sliceId,
  indexes,
  editable,
  customCells,
  extraCellsBefore,
  extraCellsAfter,
  ...props
}: SliceInHtmlTableProps & HtmlTableProps)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

getIndexStoreTableIdFunction · 0.90
useIndexesOrIndexesByIdFunction · 0.90
useParamsFunction · 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…