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

Function content

src/ui-solid-dom/RelationshipInHtmlTable.tsx:142–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 () => details()[1],
141 );
142 const content = () => {
143 const [relationships, store, localTableId, remoteTableId] = details();
144 const params = getParams(
145 props.idColumn ?? true,
146 cells,
147 localTableId,
148 remoteTableId,
149 props.relationshipId,
150 relationships,
151 store,
152 props.extraCellsBefore,
153 props.extraCellsAfter,
154 );
155 return (
156 <table class={props.className}>
157 {isFalse(props.headerRow) ? null : (
158 <thead>
159 <tr>
160 {extraHeaders(props.extraCellsBefore)}
161 {isFalse(props.idColumn) ? null : (
162 <>
163 <th>{localTableId}.Id</th>
164 <th>{remoteTableId}.Id</th>
165 </>
166 )}
167 {objToArray(cells(), (cell) => (
168 <th>{cell.label}</th>
169 ))}
170 {extraHeaders(props.extraCellsAfter)}
171 </tr>
172 </thead>
173 )}
174 <tbody>
175 {arrayMap(rowIds(), (localRowId) =>
176 RelationshipInHtmlRow({localRowId, params}),
177 )}
178 </tbody>
179 </table>
180 );
181 };
182 return <>{content()}</>;
183};

Callers 1

RelationshipInHtmlTableFunction · 0.70

Calls 8

getParamsFunction · 0.90
isFalseFunction · 0.90
extraHeadersFunction · 0.90
objToArrayFunction · 0.90
arrayMapFunction · 0.90
RelationshipInHtmlRowFunction · 0.70
cellsFunction · 0.50
rowIdsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…