Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@zestia/ember-simple-infinite-scroller
Advanced tools
Changelog
9.2.0
ember-cli-update
Readme
This Ember addon provides a simple component that fires an action whenever it is scrolled to the bottom. Allowing you to load more data.
ember install @zestia/ember-simple-infinite-scroller
https://zestia.github.io/ember-simple-infinite-scroller
<InfiniteScroller @onLoadMore={{this.loadMore}} as |scroller|>
{{#each things as |thing|}}
...
{{/each}}
{{if scroller.isLoading 'Please wait...'}}
</InfiniteScroller>
InfiniteScroller
@onLoadMore
Required. Fired when the the element has been scrolled to the specified @percent
.
@element
Optional. By default the scroll position of the component's own DOM element is monitored. You can use this argument to change the element, to monitor the document for example.
@percent
Optional. The distance that has to be scrolled before the load more action is fired. Defaults to 100
%
@debounce
Optional. Milliseconds delay for when to check if more needs to be loaded. Defaults to every 100
ms
isLoading
Whether the promise for more data has resolved yet
isScrollable
Whether the element is overflowing or not. If it's not, then the user will not be able to scroll to load more. In such a case, you can use this boolean to provide a button to manually load more.
loadMore
Call this to manually load more
A test helper is provided to help scrolling your element
import { scrollToPercentage } from '@zestia/ember-simple-infinite-scroller/test-support/helpers';
test('loading more', async function () {
await visit('/');
await scrollToPercentage('.infinite-scroller', 100);
// ...
});
Please read: https://github.com/TryGhost/Ghost/issues/7934
You may need to add the below code to app/app.js
customEvents = {
touchstart: null,
touchmove: null,
touchend: null,
touchcancel: null
};
FAQs
Simple infinite scroller component for Ember apps
The npm package @zestia/ember-simple-infinite-scroller receives a total of 15,278 weekly downloads. As such, @zestia/ember-simple-infinite-scroller popularity was classified as popular.
We found that @zestia/ember-simple-infinite-scroller demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.