Gathering detailed insights and metrics for @craftworks/ng-table-virtual-scroll
Gathering detailed insights and metrics for @craftworks/ng-table-virtual-scroll
Gathering detailed insights and metrics for @craftworks/ng-table-virtual-scroll
Gathering detailed insights and metrics for @craftworks/ng-table-virtual-scroll
Virtual Scroll for Angular Material Table
npm install @craftworks/ng-table-virtual-scroll
Typescript
Module System
Node Version
NPM Version
TypeScript (70.37%)
HTML (20.16%)
SCSS (7.29%)
JavaScript (1.33%)
CSS (0.84%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
80 Commits
4 Branches
4 Contributors
Updated on Jan 11, 2023
Latest Version
1.3.8
Package Id
@craftworks/ng-table-virtual-scroll@1.3.8
Unpacked Size
219.48 kB
Size
49.63 kB
File Count
21
NPM Version
6.9.0
Node Version
10.16.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
4
Origin Library was forked and this package was published because we needed this PR: https://github.com/diprokon/ng-table-virtual-scroll/pull/66
An Angular Directive, which allow to use virtual scrolling in mat-table
NPM
1$ npm install -save ng-table-virtual-scroll
TableVirtualScrollModule
1import { TableVirtualScrollModule } from 'ng-table-virtual-scroll'; 2 3@NgModule({ 4 imports: [ 5 // ... 6 TableVirtualScrollModule 7 ] 8}) 9export class AppModule { }
Note: you need to install and configure virtual scrolling and mat-table before. TableVirtualScroll only make them work together properly
The TableVirtualScrollDataSource
extends the MatTableDataSource
and must be
used as the data source for the mat-table
Note: without TableVirtualScrollDataSource
the directive won't work
1import { TableVirtualScrollDataSource } from 'ng-table-virtual-scroll'; 2 3@Component({...}) 4export class MyComponent { 5 6 dataSource = new TableVirtualScrollDataSource(); 7 8}
The tvsItemSize
directive makes the magic
1<cdk-virtual-scroll-viewport tvsItemSize="48" headerHeight="56" style="height: 400px;"> 2 <table mat-table [dataSource]="dataSource"> 3 ... 4 </table> 5</cdk-virtual-scroll-viewport>
Make sure, you set the height to the <cdk-virtual-scroll-viewport>
container
Also, you can provide additional properties:
tvsItemSize
-> the row height in px (default: 48)
headerHeight
-> the header row height in px (default: 56)
footerHeight
-> the footer row height in px (default: 48)
headerEnabled
-> is the header row in the table (default: true)
footerEnabled
-> is the footer row in the table (default: false)
bufferMultiplier
-> the size of rendered buffer. The bufferMultiplier * visibleRowsCount
number of rows will be rendered before and after visible part of the table.
This project uses Angular CLI to build the package.
1$ npm run build:lib ng-table-virtual-scroll
If you identify any errors in the library, or have an idea for an improvement, please open an issue.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
project is archived
Details
Reason
Found 1/22 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
101 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More