Infinite Scroll
<salla-infinite-scroll>
web component allows for infinite scrolling to load content continuously as the user scrolls down the page, eliminating the need for pagination, and that can be customized using the properties' parameters available.Example

Usage
HTML
SASS
Note
autoload
to be true
for loading content as customers scroll through the content, or set it to false
and add a Button Component to activiate the content auto-scrolling capability.Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
Autoload | autoload | Whether or not to autoload the next page's content when scrolling to its view | boolean | 'false' |
Container | container | Class selector to know if the container is or is not the host <salla-infinite-scroll> | string | '.s-infinite-scroll-container' |
Item | item | Class selector to list items | string | 'salla-infinite-scroll > *' |
Load More Text | load-more-text | Informs the user that more data is available, and to prompt them to click on the button to load it. | string | undefined |
Next Page | next-page | Loads content from a next page path URL | string | '' |
Modified at 2024-08-18 06:26:38