onScroll or addEventListener('scroll') #198
parkderick
started this conversation in
Feature requests
Replies: 1 comment
-
|
Hey @parkderick , But you can do it yourself pretty easily: useEffect(() => {
const listener = (event) => {
// Do something
}
// If you have multiple DSG on the page,
// maybe use an id or add a ref to the parent and only look for children
const container = document.querySelector('.dsg-container')
container.addEventListener('scroll', listener)
return () => {
container.removeEventListener('scroll', listener)
}
}, []) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, is there any way I can listen to scrolling within the grid vertically?
I need to fetchMore data as one scrolls towards to the bottom of the grid.
Beta Was this translation helpful? Give feedback.
All reactions