本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
<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.
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.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 | '' |
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升