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

Function tableView

src/ui-solid/common/index.tsx:39–62  ·  view source on GitHub ↗
(
  props: TableProps,
  rowIds: MaybeAccessor<Ids>,
)

Source from the content-addressed store, hash-verified

37export type ExtraThingsById = ThingsById<ThingsByOffset>;
38
39export const tableView = (
40 props: TableProps,
41 rowIds: MaybeAccessor<Ids>,
42): JSXElement => {
43 const content = () => {
44 const Row = props.rowComponent ?? RowView;
45 return wrap(
46 arrayMap(getValue(rowIds), (rowId) => (
47 <Row
48 {...getProps(props.getRowComponentProps, rowId)}
49 tableId={props.tableId}
50 rowId={rowId}
51 customCellIds={props.customCellIds}
52 store={props.store}
53 debugIds={props.debugIds}
54 />
55 )),
56 props.separator,
57 props.debugIds,
58 props.tableId,
59 );
60 };
61 return <>{content()}</>;
62};
63
64export const resultTableView = (
65 props: ResultTableProps,

Callers 2

SortedTableViewFunction · 0.90
TableViewFunction · 0.90

Calls 1

contentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…