MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / Cell

Function Cell

web/pgadmin/static/js/components/PgReactTableStyled.jsx:389–410  ·  view source on GitHub ↗
({ row })

Source from the content-addressed store, hash-verified

387
388export function getExpandCell({ onClick, title }) {
389 const Cell = ({ row }) => {
390 const onClickFinal = (e) => {
391 e.preventDefault();
392 row.toggleExpanded();
393 onClick?.(row, e);
394 };
395 return (
396 <PgIconButton
397 size="xs"
398 icon={
399 row.getIsExpanded() ? (
400 <KeyboardArrowDownIcon />
401 ) : (
402 <ChevronRightIcon />
403 )
404 }
405 noBorder
406 onClick={onClickFinal}
407 aria-label={title}
408 />
409 );
410 };
411
412 Cell.displayName = 'ExpandCell';
413 Cell.propTypes = {

Callers

nothing calls this directly

Calls 2

getValueFunction · 0.85
onClickFunction · 0.85

Tested by

no test coverage detected