Gathering detailed insights and metrics for radiumcz-angular-vs-repeat
Gathering detailed insights and metrics for radiumcz-angular-vs-repeat
Gathering detailed insights and metrics for radiumcz-angular-vs-repeat
Gathering detailed insights and metrics for radiumcz-angular-vs-repeat
npm install radiumcz-angular-vs-repeat
Typescript
Module System
Node Version
NPM Version
78.4
Supply Chain
98.8
Quality
74.8
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,043
Last Day
1
Last Week
3
Last Month
7
Last Year
55
817 Stars
205 Commits
229 Forks
23 Watching
16 Branches
13 Contributors
Minified
Minified + Gzipped
Latest Version
1.1.8
Package Id
radiumcz-angular-vs-repeat@1.1.8
Size
216.32 kB
NPM Version
3.10.10
Node Version
6.10.2
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
200%
3
Compared to previous week
Last month
75%
7
Compared to previous month
Last year
-39.6%
55
Compared to previous year
Check out https://github.com/kamilkp/ng2-vs-for
top
updating directives - even better performanceVirtual Scroll for AngularJS ngRepeat directive
Demo: http://kamilkp.github.io/angular-vs-repeat/
You can find the source code for this demo on branch "gh-pages".
Changelog: https://github.com/kamilkp/angular-vs-repeat/blob/master/CHANGELOG.md
###DESCRIPTION:
vsRepeat
directive stands for Virtual Scroll Repeat. It turns a standard ngRepeated set of elements in a scrollable container
into a component, where the user thinks he has all the elements rendered and all he needs to do is scroll (without any kind of
pagination - which most users loath) and at the same time the browser isn't overloaded by that many elements/angular bindings etc.
The directive renders only so many elements that can fit into current container's clientHeight
/clientWidth
.
###LIMITATIONS:
ngRepeat
###USAGE:
First include vs-repeat
as a module dependency in your app.
In order to use the vsRepeat directive you need to place a vs-repeat attribute on a direct parent of an element with ng-repeat
example:
1<div vs-repeat> 2 <div ng-repeat="item in someArray"> 3 <!-- content --> 4 </div> 5</div>
or:
1<div vs-repeat> 2 <div ng-repeat-start="item in someArray"> 3 <!-- content --> 4 </div> 5 <div> 6 <!-- something in the middle --> 7 </div> 8 <div ng-repeat-end> 9 <!-- content --> 10 </div> 11</div>
You can also measure the single element's height/width (including all paddings and margins), and then speficy it as a value of the attribute 'vs-repeat'. This can be used if one wants to override the automatically computed element size. example:
1<div vs-repeat="50"> <!-- the specified element height is 50px --> 2 <div ng-repeat="item in someArray"> 3 <!-- content --> 4 </div> 5</div>
ngRepeat
###OPTIONAL PARAMETERS (attributes):
vs-scroll-parent="selector"
- selector to the scrollable container. The directive will look for a closest parent matching the given selector (defaults to the current element). It can also have the value of "window" in which case the directive will hook on the main window scrollbarvs-offset-before="value"
- top/left offset in pixels (defaults to 0)vs-offset-after="value"
- bottom/right offset in pixels (defaults to 0)vs-horizontal
- horizontal mode (the ngRepeat'ed elements should be horizontally stacked)vs-excess="value"
- an integer number representing the number of elements to be rendered outside of the current container's viewport (defaults to 2)vs-size="expression"
- an angular expression evaluated on the item scope that should return the item size. Can be a function or a property name or whatevervs-autoresize
- use this attribute without vs-size
and without specifying element's size. The automatically computed element style will readjust upon window resize if the size is dependable on the viewport sizevs-options="{latch: true}"
enables latching mode - elements once rendered are not being removed when scrolled away (improves scrolling performance when the rendering of each element is time consuming)vs-scrolled-to-end="callback"
callback will be called when the last item of the list is renderedvs-scrolled-to-end-offset="integer"
- set this number to trigger the scrolledToEnd callback n items before the last gets rendered###EVENTS:
vsRepeatTrigger
- an event the directive listens for to manually trigger reinitializationvsRepeatResize
- an event the directive listens for to manually trigger the autosizing algorithmvsRepeatReinitialized
- an event the directive emits upon reinitialization done; the listener may accepts three arguments: event
, startIndex
and endIndex
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
101 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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