3

Hello Haskell and Threepenny-GUI community,

I want to display a ListBox which has infinite scrolling support. I have a table in an SQLite database with 100k - 1000k rows. I want to display rows in a ListBox. I got help from this post threepenny-gui-reactive-in-client-server. I got the GUI working with two ListBoxes, one for the page number and the other for actual rows for that page.

Though my goal is to create a GUI that has just one display, something like a basic version but similar to this example using SlickGrid: http://mleibman.github.io/SlickGrid/examples/example4-model.html.

4
  • Threepenny-GUI (version 0.6) currently does not have an infinite scrolling widget built-in. Essentially, you have implement your own. Judging from the example that you have linked to, the key is that div elements are created and destroyed whenever the table is being scrolled, so that only the currently visible entries are present in the DOM tree. Jul 18, 2015 at 12:22
  • @ErikAllik Thanks for the edits. I don't have a working code towards infinite scrolling. The code I got so far has two ListBoxes one for page numbers and another displays data rows. I plan to post the code on github. Jul 20, 2015 at 6:23
  • @HeinrichApfelmus Could you please guide any example/skelton code? I wanted to understand what kind of events I could use? Will ListBox wouldn't be a good choice here? I think, I should confess that I am new to Haskell :) Jul 20, 2015 at 6:37
  • @user5126372 I currently don't have any example code for infinite scrolling, sorry. What I'm saying is that it's more complicated to implement and definitely not supported by the simple-minded ListBox thing. Jul 20, 2015 at 14:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.