SelectColumn.renderCell() — supabase Function Reference
Architecture documentation for the SelectColumn.renderCell() function in SelectColumn.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/grid/components/grid/SelectColumn.tsx lines 41–58
renderCell: (props: RenderCellProps<SupaRow>) => {
// [Alaister] formatter is actually a valid React component, so we can use hooks here
// eslint-disable-next-line react-hooks/rules-of-hooks
const [isRowSelected, onRowSelectionChange] = useRowSelection()
return (
<SelectCellFormatter
aria-label="Select"
tabIndex={props.tabIndex}
value={isRowSelected}
row={props.row}
onChange={(checked, isShiftClick) => {
onRowSelectionChange({ type: 'ROW', row: props.row, checked, isShiftClick })
}}
// Stop propagation to prevent row selection
onClick={stopPropagation}
/>
)
},
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free