This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-21
Channels
- # announcements (9)
- # babashka (45)
- # beginners (45)
- # calva (1)
- # clojure (40)
- # clojure-austin (16)
- # clojure-europe (16)
- # clojure-nl (1)
- # clojure-norway (35)
- # clojure-uk (4)
- # clojurescript (11)
- # conjure (3)
- # cursive (4)
- # datalevin (14)
- # datavis (1)
- # datomic (8)
- # emacs (6)
- # hyperfiddle (7)
- # introduce-yourself (3)
- # joyride (17)
- # missionary (16)
- # off-topic (2)
- # pedestal (9)
- # polylith (27)
- # re-frame (7)
- # reitit (1)
- # releases (1)
- # shadow-cljs (17)
- # sql (17)
- # tools-build (19)
- # tools-deps (15)
- # xtdb (15)
Heyo! I am trying to get a table (or something that looks like it) working in electric. Found some threads discussing the topic and ended up trying to emulate what you guys are doing in the https://electric-datomic-viewer.fly.dev/(:app.datomic-browser!attribute,:abstract%52elease!name) / https://github.com/hyperfiddle/electric/blob/master/src/contrib/gridsheet.cljc. Unfortunately, even with a barebones implementation using nothing but hardcoded data, it keeps glitching out upon scrolling down (see images).
What is interesting is that if I replace the cells for-loop (https://github.com/hyperfiddle/electric/blob/master/src/contrib/gridsheet.cljc#L77) with a hardcoded div for each cell (since I know the number of columns in the test data) it will work perfectly fine. But any other way I have tried to make it work has ultimately been a failure. The value of scroll-top
is jumping all over the place, so I initially thought that perhaps elements were being mounted before what was previously on the screen got unmounted (and with that bumping things out of place), but I think I was able to confirm this is not the case (with mount/unmount prints).
Maybe you have some ideas about what is happening?
I also noticed the todo deprecate
comment at the top of the Gridsheet ns, and I have heard rumours about a fabled electric table you guys built. If possible, we would certainly be interested in having a look at that 👍
Lmk if you need any more information, or code snippets (although the barebones implementation was me going back and essentially making a carbon copy of the gridsheet code).
Decided to reduce scope of the project in the meantime, using a paginated table view (no infinite scroll). So no rush but still keen to hear/see your take on tables in electric.
Haven't touched this in over a year but it looks misconfigured, the gridsheet requires some layout information injected from userland including a css-grid column config - https://github.com/hyperfiddle/electric-fiddle/blob/15639af98d15280d87a85af548650359660cc234/src/datomic_browser/datomic_browser.cljc#L51
we do have feature complete and high quality application datagrids (see screenshots in our website) but they are for our consulting clients only at this point, they are not plug-n-play yet (harder to configure than the datomic browser for sure)