![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ngx-virtual-scroll-list
Advanced tools
Angular Directive to add virtual scroll.
Live Demo : https://mraghuram3.github.io/#/ngx-virtual-scroll-list
To install this library, run:
$ npm install ngx-virtual-scroll-list --save
Import NgxVirtualScrollModule
in the root module
import { NgxVirtualScrollModule } from 'ngx-virtual-scroll-list';
@NgModule({
imports: [
// ...
NgxVirtualScrollModule.forRoot(),
...
]
})
In your template
<div ngxVirtualScroll [items]="data" [minRowHeight]="25" (change)="displayData = $event.data;actualIndex = $event.startIndex;" class="parent">
<div ngxVirtualScrollElement [minRowHeight]="25" *ngFor="let r of displayData;let i = index;" [rangeStart]="actualIndex" [elemIndex]="i">{{r}}</div>
</div>
ngxVirtualScroll
Add the directive to the div or other dom in which the elemnts are to be loaded
[items]: any[].
The data which is populated on the virtual scroll list
[minRowHeight]: number.
The minimum height of the row in pixels.
(change)="displayData = $event.data;actualIndex = $event.startIndex;":
create two variables and update them with the events from change event as shown.
displayData = [];
actualIndex = 0;
.....
......
ngxVirtualScrollElement
Add the directive to the div for row elements of the virtual scroll.
[minRowHeight]: number.
The minimum height of the row in pixels.
[rangeStart]: number.
Pass the data from change event.
** include other inputs in ngxVirtualScrollElement row, like ngFor and [elemIndex] **
** Specify height for the parent div in px, vh, em or rem (otherthan percentage) **
.parent{
height:300px;
width:300px;
}
MIT © Raghu Ram M
FAQs
Angular Directive to add virtual scroll.
The npm package ngx-virtual-scroll-list receives a total of 0 weekly downloads. As such, ngx-virtual-scroll-list popularity was classified as not popular.
We found that ngx-virtual-scroll-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.