
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
ember-simple-infinite-scroller
Advanced tools
This Ember addon provides a simple component that fires an action whenever it is scrolled to the bottom. Allowing you to load more data. It is not coupled to Ember-Data like some other infinite scrolling implementations.
ember install ember-simple-infinite-scroller
{{#infinite-scroller on-load-more=(action 'loadMore') as |scroller|}}
{{#each things as |thing|}}
...
{{/each}}
{{if scroller.isLoading 'Please wait...'}}
{{/infinite-scroller}}
Attribute | Description | Default |
---|---|---|
on-load-more | Action to perform when the bottom is scrolled to | |
use-document | Goes off document scroll rather than the element's scroll position | false |
trigger-at | A percentage of the scrollable height to consider as the 'bottom' | "100%" |
scroll-debounce | Milliseconds delay used to check if the bottom has been scrolled to | 100 ms |
Either make your component scrollable:
.my-element {
max-height: 300px;
overflow-y: auto;
}
OR
Set use-document=true
if your component is not scrollable.
{{#infinite-scroller use-document=true}}
{{! action will fire when the document is scrolled to the bottom }}
{{/infinite-scroller}}
The component will yield a hash that provides:
Property | Description |
---|---|
isLoading | True when the promise for more data has not resolved yet |
error | The caught error from the last attempt to load more |
loadMore | Action for manually loading more |
Please read: https://github.com/TryGhost/Ghost/issues/7934
You may need to add this to app/app.js
customEvents: {
touchstart: null,
touchmove: null,
touchend: null,
touchcancel: null
}
1.0.12
FAQs
Simple infinite scroller component for Ember apps
We found that ember-simple-infinite-scroller 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.