This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-18
Channels
- # aws (21)
- # babashka (32)
- # babashka-sci-dev (3)
- # beginners (17)
- # biff (1)
- # calva (8)
- # clj-kondo (1)
- # cljfx (8)
- # cljs-dev (3)
- # clojure (13)
- # clojure-belgium (1)
- # clojure-europe (16)
- # clojure-losangeles (2)
- # clojure-norway (6)
- # clojurescript (11)
- # conjure (1)
- # data-science (1)
- # fulcro (2)
- # gratitude (5)
- # helix (1)
- # joyride (3)
- # malli (14)
- # nbb (4)
- # off-topic (11)
- # other-languages (10)
- # polylith (4)
- # re-frame (2)
- # sci (3)
- # shadow-cljs (20)
- # spacemacs (3)
- # tools-deps (1)
- # vim (4)
Does anyone have examples of calling Java from JavaScript in a JavaFX webview that was created by cljfx?
Maybe not possible? https://clojurians.slack.com/archives/CGHHJNENB/p1607571654183600
I don't have simple standalone example at hand, but I do have hairy real world example — :on-signals in reveal's Vega view that gets notifications from js https://github.com/vlaaad/reveal/blob/master/src/vlaaad/reveal/vega.clj#L199
The idea is that you use .setMember on window
object to set there a clojure fn — either during init it as a part of a prop https://github.com/vlaaad/reveal/blob/master/src/vlaaad/reveal/vega.clj#L110
And then .invoke it in js when needed — https://github.com/vlaaad/reveal/blob/master/src/vlaaad/reveal/vega.clj#L129