Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to know when the user scrolled to the end? #15

Open
MeloHenrique opened this issue Jul 16, 2021 · 2 comments
Open

Is it possible to know when the user scrolled to the end? #15

MeloHenrique opened this issue Jul 16, 2021 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@MeloHenrique
Copy link

Hello,

I wanted to add pagination to my charts.
Initially, the chart will receive recent data. But if the user scrolls to the end, it will run a function and ask for more data.

Is it possible to do?

@lukaknezic
Copy link
Contributor

Hi @MeloHenrique,

This is possible, but you will have to write pagination logic.

Example for scrollable chart can be found in here

Setting isScrollable in ChartBehaviour to true will make sure that chart ignores width of the parent. You have to wrap chart in scrollable widget, and from there you can attach scroll controller to the scrollable widget and manipulate data in the chart (to load more) when controller is near ar at the end.

p.s. when setting isScrollable to true you should define, min/max item width in ItemOptions, since that is the value items will use in that case.

@lukaknezic lukaknezic added the question Further information is requested label Jul 20, 2021
@lukaknezic lukaknezic self-assigned this Jul 20, 2021
@irshadshan000
Copy link

Yeah, and I have tried the same, with scrolnotification property , metrices.extendbefore property can add condition for right scrolling & left scrolling, and can Identify give loadmore method can call by extendbefore conditioning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants