angular2-virtual-scroll
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -0,1 +1,5 @@ | ||
# v0.4.5 | ||
* Update Readme | ||
# v0.4.4 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "angular2-virtual-scroll", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "Angular 4+ module for virtual -infinite- list. Supports multi-column", | ||
@@ -5,0 +5,0 @@ "main": "dist/virtual-scroll.js", |
@@ -217,4 +217,7 @@ | ||
Items must have fixed height and width for this module to work perfectly. However if you have items with variable width and height, set inputs `childWidth` and `childHeight` to their smallest possible values. | ||
Items must have fixed height and width for this module to work perfectly. However if you have items with variable width and height, set inputs `childWidth` and `childHeight` to their smallest possible values. You can also modify `bufferAmount` which causes extra items to be rendered on the edges of the scrolling area. | ||
If you are unsure what values to use for `childWidth` and `childHeight` and `bufferAmount` you can instead set [enableUnequalChildrenSizes]="true". This will cause all 3 values to be auto-calculated. | ||
```html | ||
@@ -224,2 +227,3 @@ <virtual-scroll [items]="items" | ||
[childHeight]="30" | ||
[bufferAmount]="5" | ||
(update)="viewPortItems = $event"> | ||
@@ -233,2 +237,15 @@ | ||
or | ||
```html | ||
<virtual-scroll [items]="items" | ||
[enableUnequalChildrenSizes]="true" | ||
(update)="viewPortItems = $event"> | ||
<my-custom-component *ngFor="let item of viewPortItems"> | ||
</my-custom-component> | ||
</virtual-scroll> | ||
``` | ||
## Loading in chunks | ||
@@ -235,0 +252,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
86119
416
0