( props: SliceInHtmlTableProps & HtmlTableProps, )
| 24 | import {EditableCellView} from './EditableCellView.tsx'; |
| 25 | |
| 26 | export 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 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…