Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة
$pwd:

angular-compose-with-tanstack-virtual

// Compose TanStack Table v9 with `@tanstack/angular-virtual` for virtualized rendering of large row sets. TanStack Table does NOT virtualize on its own. Pattern: get `rows = table.getRowModel().rows`, feed `rows.length` to `injectVirtualizer({ count, estimateSize, getScrollElement, overscan })`, iterate `virtualizer.getVirtualItems()` in the template, position each row with `transform: translateY(item.start)` inside a tall sentinel, set `[style.height.px]="virtualizer.getTotalSize()"` to make the scrollbar correct. Handle the table-feature interactions: row-expanding (variable subRow heights → measure with `measureElement`), column sizing/pinning (column virtualization is separate), row-selection (selection state survives virtualization because it's keyed by row ID).

$ git log --oneline --stat
stars:٢٨٬٠٢٦
forks:٣٬٥٠٤
updated:١٧ مايو ٢٠٢٦ في ١٨:٠١
SKILL.md
readonly