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

Function SortedTableView

docs/pseudo.esm.sh/tinybase@9.0.0/ui-svelte/index.js:1731–1782  ·  view source on GitHub ↗
($$anchor, $$props)

Source from the content-addressed store, hash-verified

1729 $.pop();
1730}
1731function SortedTableView($$anchor, $$props) {
1732 $.push($$props, true);
1733 const rowIds = getSortedRowIds(
1734 () => $$props.tableId,
1735 () => $$props.cellId,
1736 () => $$props.descending ?? false,
1737 () => $$props.offset ?? 0,
1738 () => $$props.limit,
1739 () => $$props.store
1740 );
1741 {
1742 const children = ($$anchor2, rowId = $.noop) => {
1743 RowView($$anchor2, {
1744 get tableId() {
1745 return $$props.tableId;
1746 },
1747 get rowId() {
1748 return rowId();
1749 },
1750 get store() {
1751 return $$props.store;
1752 },
1753 get customCellIds() {
1754 return $$props.customCellIds;
1755 },
1756 get debugIds() {
1757 return $$props.debugIds;
1758 }
1759 });
1760 };
1761 Wrap($$anchor, {
1762 get ids() {
1763 return rowIds.current;
1764 },
1765 get separator() {
1766 return $$props.separator;
1767 },
1768 get debugIds() {
1769 return $$props.debugIds;
1770 },
1771 get id() {
1772 return $$props.tableId;
1773 },
1774 get custom() {
1775 return $$props.row;
1776 },
1777 children,
1778 $$slots: { default: true }
1779 });
1780 }
1781 $.pop();
1782}
1783function TableView($$anchor, $$props) {
1784 $.push($$props, true);
1785 const rowIds = getRowIds(

Callers

nothing calls this directly

Calls 2

getSortedRowIdsFunction · 0.70
WrapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…