Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
angular2-virtual-scroll
Advanced tools
Angular 2 module for virtual -infinite- list. Supports multi-column
Virtual Scroll displays a virtual, "infinite" list. Supports multi-column.
This module does not render every record in the list at once; instead a small subset of records just enough to fill the viewport are rendered and reused as the user scrolls. Thus displaying an infinitely growing list of items in a viewport of size just about a couple rows in an efficient way is made possible.
Items must have fixed height and width for this module to work perfectly. However if your list happen to have items with variable width and height, set childWidth
and childHeight
to the smallest possible values manually to make this work.
<virtual-scroll [items]="items" (update)="viewPortItems = $event">
<list-item *ngFor="let item of viewPortItems" [item]="item">
</list-item>
</virtual-scroll>
Step 1: Install angular2-virtual-scroll
npm install angular2-virtual-scroll --save
Step 2: Import virtual scroll module into your app module
....
import { VirtualScrollModule } from 'angular2-virtual-scroll';
....
@NgModule({
...
imports: [
....
VirtualScrollModule
],
....
})
export class AppModule { }
Step 3: Wrap virtual-scroll tag around list items;
<virtual-scroll [items]="items" (update)="viewPortItems = $event">
<list-item *ngFor="let item of viewPortItems" [item]="item">
</list-item>
</virtual-scroll>
Contributions are very welcome! Just send a pull request. Feel free to contact me or checkout my GitHub page.
Rinto Jose (rintoj)
Follow me: GitHub | Facebook | Twitter | Google+ | Youtube
The MIT License (MIT)
Copyright (c) 2016 Rinto Jose (rintoj)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
v0.0.5
FAQs
Angular 4+ module for virtual -infinite- list. Supports multi-column
The npm package angular2-virtual-scroll receives a total of 0 weekly downloads. As such, angular2-virtual-scroll popularity was classified as not popular.
We found that angular2-virtual-scroll 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.