This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-31
Channels
- # announcements (7)
- # asami (2)
- # babashka (47)
- # beginners (8)
- # calva (42)
- # clj-kondo (58)
- # cljdoc (1)
- # clojure (88)
- # clojure-europe (11)
- # clojurescript (6)
- # conjure (7)
- # data-science (5)
- # emacs (9)
- # events (1)
- # holy-lambda (3)
- # introduce-yourself (5)
- # meander (3)
- # missionary (4)
- # nbb (18)
- # obb (5)
- # off-topic (1)
- # other-languages (10)
- # pathom (2)
- # reagent (6)
- # releases (3)
- # ring (3)
- # scittle (1)
- # shadow-cljs (1)
- # spacemacs (2)
- # xtdb (6)
Beginner question -- how do I call to jquery from Clojurescript? I want to run this (https://datatables.net/):
$('#myTable').DataTable();
Does this look right?
(.DataTable (js/$ "#example"))
I'm doing something wrong. Here's what I got: https://play.teod.eu/scicloj-libraries/#fancy I'm trying to load the second table as a JQuery data table. But I'm also using Reagent to generate the DOM, which might be a bad idea. (https://github.com/teodorlu/play.teod.eu/tree/2d2d8631bcb67fce6197b0c74a39266bc5bc02ff/scicloj-libraries/libs.cljs)
it is valid on its own yes, but entirely different when used with reagent/react
👍 1
✔️ 1
Do you think I'd have better luck with https://www.npmjs.com/package/react-data-table-component?