Gathering detailed insights and metrics for ng-cdk-table-virtual-scroll
Gathering detailed insights and metrics for ng-cdk-table-virtual-scroll
npm install ng-cdk-table-virtual-scroll
Typescript
Module System
Node Version
NPM Version
TypeScript (70.66%)
HTML (19.97%)
SCSS (7.23%)
JavaScript (1.55%)
CSS (0.59%)
Total Downloads
84,568
Last Day
350
Last Week
1,043
Last Month
4,637
Last Year
38,978
1 Stars
63 Commits
1 Forks
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.2
Package Id
ng-cdk-table-virtual-scroll@1.0.2
Unpacked Size
294.16 kB
Size
61.11 kB
File Count
29
NPM Version
7.0.14
Node Version
15.3.0
Cumulative downloads
Total Downloads
Last day
5.1%
350
Compared to previous day
Last week
-39.2%
1,043
Compared to previous week
Last month
40.8%
4,637
Compared to previous month
Last year
66.2%
38,978
Compared to previous year
1
3
An Angular Directive, which allow to use virtual scrolling in cdk-table
This library is a fork of ng-table-virtual-scroll
NPM
1$ npm install -save ng-cdk-table-virtual-scroll
TableVirtualScrollModule
1import { TableVirtualScrollModule } from 'ng-cdk-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 work them 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-cdk-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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
118 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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