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
npm install @craftworks/ng-table-virtual-scroll
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
80 Commits
1 Watching
4 Branches
3 Contributors
Updated on 11 Jan 2023
TypeScript (70.37%)
HTML (20.16%)
SCSS (7.29%)
JavaScript (1.33%)
CSS (0.84%)
Cumulative downloads
Total Downloads
Last day
0%
12
Compared to previous day
Last week
69.2%
44
Compared to previous week
Last month
41.2%
72
Compared to previous month
Last year
-94.5%
1,603
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
Found 1/22 approved changesets -- score normalized to 0
Reason
project is archived
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
91 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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