feat: use infinite-scroll with grid or any custom container
See original GitHub issueFeature Request
Ionic version:
[x] 5.x
Describe the Feature Request
Currently, i’m working on a client’s project where i need to use infinite-scroll
but i’m unable to do so. I have a page where i got upper section 30% filled with filter controls (like search, sort etc) and remaining 70% page contains the grid. I cannot let my page scroll as i need full view, therefore i need infinite-scroll
with grid, but it seems to work only with page.
It would be great to have this thing done.
Describe Preferred Solution
Describe Alternatives
Related Code
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
feat: use infinite-scroll with grid or any custom container · ...
I have a page where i got upper section 30% filled with filter controls (like search, sort etc) and remaining 70% page contains...
Read more >ion-infinite-scroll Action Component
The ion-infinite-scroll component calls an action to be performed when the user scrolls a specified distance from the bottom or top of the...
Read more >Options
Customize Infinite Scroll with options. ... Set to a selector string of a link to the next page to use its href value...
Read more >Creating horizontal scrolling containers the right way [CSS ...
The scrolling container must follow the overall layout of the page — i.e., respecting the margins and padding; Part of the scrollable content...
Read more >Progress
Documentation and examples for using Bootstrap custom progress bars featuring support for stacked bars, animated backgrounds, and text labels.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, i worked the way you said and it solves the problem for now.
But shouldn’t
ion-infinite-scroll
needs to be flexible enough, so that i don’t need to put everything outside theion-content
except for myinfinite-scroll
?I mean,
ion-content
suppose to contain everything except forion-header
andion-footer
and that’s how its in DOC, Isn’t it ?Thanks for the follow up. The infinite scroll component looks to use the dimensions of
ion-content
, so you would likely need to move your card outside ofion-content
in order to “block” 300px of the height. From there, you can remove the<div style="height: calc(100% - 220px); overflow: auto;">
element.Can you give that a try and let me know if it works?