MCPcopy Create free account
hub / github.com/tinyplex/tinybase / HtmlHeaderCell

Function HtmlHeaderCell

docs/pseudo.esm.sh/tinybase@9.0.0/ui-react-dom/index.js:662–678  ·  view source on GitHub ↗
({
  cellId,
  sort: [sortCellId, sortDescending],
  label = cellId ?? EMPTY_STRING2,
  onClick
})

Source from the content-addressed store, hash-verified

660 )
661);
662var HtmlHeaderCell = ({
663 cellId,
664 sort: [sortCellId, sortDescending],
665 label = cellId ?? EMPTY_STRING2,
666 onClick
667}) => /* @__PURE__ */ jsxs("th", {
668 onClick: useCallbackOrUndefined(
669 () => onClick?.(cellId),
670 [onClick, cellId],
671 onClick
672 ),
673 className: isUndefined2(sortDescending) || sortCellId != cellId ? void 0 : `sorted ${sortDescending ? "de" : "a"}scending`,
674 children: [
675 isUndefined2(sortDescending) || sortCellId != cellId ? null : (sortDescending ? DOWN_ARROW : UP_ARROW) + " ",
676 label
677 ]
678});
679var HtmlTable = ({
680 className,
681 headerRow,

Callers

nothing calls this directly

Calls 3

onClickFunction · 0.85
useCallbackOrUndefinedFunction · 0.70
isUndefined2Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…