This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-24
Channels
- # announcements (6)
- # architecture (9)
- # aws (2)
- # babashka (49)
- # beginners (160)
- # boot (19)
- # calva (9)
- # cider (16)
- # clj-kondo (17)
- # cljfx (9)
- # clojure (143)
- # clojure-australia (5)
- # clojure-berlin (1)
- # clojure-czech (3)
- # clojure-europe (64)
- # clojure-france (1)
- # clojure-italy (12)
- # clojure-nl (4)
- # clojure-spec (6)
- # clojure-uk (47)
- # clojurescript (27)
- # code-reviews (5)
- # conjure (45)
- # cursive (47)
- # datascript (2)
- # datomic (21)
- # events (1)
- # fulcro (9)
- # graalvm (4)
- # graphql (2)
- # jackdaw (22)
- # jobs (3)
- # kaocha (6)
- # london-clojurians (1)
- # luminus (4)
- # malli (19)
- # meander (136)
- # pathom (4)
- # pedestal (2)
- # re-frame (15)
- # reitit (2)
- # remote-jobs (2)
- # rum (12)
- # sci (1)
- # shadow-cljs (100)
- # spacemacs (10)
- # sql (1)
- # tools-deps (30)
- # vrac (1)
- # xtdb (30)
hello, I started to test some ideas with cljfx today and I could not find a way to use webview
to loadContent instead of opening an url
That would be great, I saw the example in the repo but was not totally clear the directions to go forward
(require '[cljfx.api :as fx]
'[cljfx.prop :as fx.prop]
'[cljfx.mutator :as fx.mutator]
'[cljfx.lifecycle :as fx.lifecycle])
(def ext-with-html
(fx/make-ext-with-props
{:html (fx.prop/make
(fx.mutator/setter #(.loadContent (.getEngine ^javafx.scene.web.WebView %1) %2))
fx.lifecycle/scalar)}))
(fx/on-fx-thread
(fx/create-component
{:fx/type :stage
:showing true
:scene {:fx/type :scene
:root {:fx/type ext-with-html
:props {:html "<h1>hello html!</h1>"}
:desc {:fx/type :web-view}}}}))