Gathering detailed insights and metrics for ng-table-virtual-scroll
Gathering detailed insights and metrics for ng-table-virtual-scroll
Gathering detailed insights and metrics for ng-table-virtual-scroll
Gathering detailed insights and metrics for ng-table-virtual-scroll
@craftworks/ng-table-virtual-scroll
Fork of Virtual scroll for for Angular Material Table: https://github.com/diprokon/ng-table-virtual-scroll
vue-virtual-scroll-list
A vue component support big amount data list with high scroll performance.
react-virtual
Hooks for virtualizing scrollable elements in React
ng-cdk-table-virtual-scroll
Virtual scroll for for Angular Cdk Table
npm install ng-table-virtual-scroll
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
139 Stars
117 Commits
43 Forks
5 Watching
2 Branches
8 Contributors
Updated on 24 Oct 2024
TypeScript (73.35%)
HTML (19.04%)
SCSS (6.42%)
CSS (1.05%)
JavaScript (0.14%)
Cumulative downloads
Total Downloads
Last day
-0.8%
7,980
Compared to previous day
Last week
-1.9%
47,206
Compared to previous week
Last month
40.1%
198,328
Compared to previous month
Last year
29.7%
1,401,184
Compared to previous year
1
4
An Angular Directive, which allow to use virtual scrolling in mat-table
NPM
1$ npm install -save ng-table-virtual-scroll
Version compatibility
Angular version | Library version |
---|---|
>= 15 | latest |
13 - 14 | 1.5.* |
<= 12 | 1.3.* |
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 (ScrollingModule) and mat-table (MatTableModule) 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
(CdkTableVirtualScrollDataSource
for cdk-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.
cdk-table
from CdkTableModule
is also supported. Just use CdkTableVirtualScrollDataSource
as datasource
If you identify any errors in the library, or have an idea for an improvement, please open an issue.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
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 2/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
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
28 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