This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-05
Channels
- # announcements (9)
- # babashka (7)
- # beginners (190)
- # calva (5)
- # cider (12)
- # clara (1)
- # clj-kondo (26)
- # cljdoc (3)
- # cljsrn (5)
- # clojure (15)
- # clojure-australia (2)
- # clojure-czech (1)
- # clojure-europe (34)
- # clojure-germany (2)
- # clojure-nl (6)
- # clojure-spec (20)
- # clojure-uk (7)
- # clojurescript (6)
- # cloverage (2)
- # conjure (10)
- # core-async (18)
- # core-logic (1)
- # cursive (22)
- # data-science (1)
- # datalog (26)
- # datomic (35)
- # docker (1)
- # emacs (4)
- # etaoin (4)
- # fulcro (51)
- # jobs (2)
- # jobs-discuss (2)
- # joker (1)
- # leiningen (4)
- # mid-cities-meetup (1)
- # off-topic (22)
- # pathom (15)
- # re-frame (14)
- # reitit (5)
- # remote-jobs (1)
- # shadow-cljs (37)
- # specter (2)
- # tools-deps (43)
- # xtdb (2)
Hi, Clojurescript beginner here, I'm trying to integrate MaterializeCss into my project, specifically SideNav component, but i'm unsure how to do so from Clojurescript. I'm trying to write this line in CLJS but it says that var M is undefined: var instance = M.Sidenav.getInstance(elem);
I've included materialize css at the top of html file before the application code. Here is the documentation for this library: https://materializecss.com/sidenav.html Update: so far I've figured out that I can get access to "M" by defining it like so (def M (js* "M"))
Still don't know how to pull off this one though: var instance = M.Sidenav.getInstance(elem);
@U01BJBB1HB5 Check out https://roman01la.github.io/javascript-to-clojurescript/ it has made life a lot easier for this kind of stuff
Yes, this has made my life easy too... thank you @U07GPFFAS
@U07GPFFAS Great tool, thank you!