This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-07
Channels
- # babashka (30)
- # beginners (49)
- # calva (22)
- # cider (9)
- # clara (2)
- # clj-commons (1)
- # cljdoc (1)
- # clojars (7)
- # clojure (153)
- # clojure-australia (2)
- # clojure-europe (45)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (17)
- # clojure-portugal (3)
- # clojure-uk (6)
- # clojurescript (21)
- # conjure (4)
- # copenhagen-clojurians (5)
- # cryogen (3)
- # cursive (19)
- # datahike (14)
- # datascript (4)
- # datomic (9)
- # events (5)
- # fulcro (23)
- # graalvm (1)
- # gratitude (4)
- # helix (2)
- # holy-lambda (5)
- # improve-getting-started (2)
- # jobs (10)
- # kaocha (1)
- # leiningen (1)
- # liquid (8)
- # membrane (81)
- # off-topic (88)
- # polylith (29)
- # quil (1)
- # reitit (2)
- # remote-jobs (8)
- # reveal (8)
- # sci (1)
- # shadow-cljs (14)
- # specter (4)
- # sql (5)
- # tools-build (11)
- # tools-deps (5)
Does reveal have the ability to live update views on refs? Say I have an atom with a map in it. Can I get a bar chart of the map updating as the value in the atom changes?
There is an example: https://github.com/vlaaad/reveal/blob/master/examples/e02_integrant_live_system_view.clj
😲 next level stuff
thanks for your work! now I finally have an excuse to dig into cljfx as well :)
Here is a small example with bar chart:
(require '[vlaaad.reveal.ext :as rx])
(def x {:a 1 :b 2 :c 4})
(rx/open-view
{:fx/type rx/observable-view
:ref #'x
:fn (fn [m]
{:fx/type rx/bar-chart-view
;; wrap in set because bar-chart-view requires 2 levels of nesting
:data #{m}})})
;; redefine
(def x {:a 1 :b 2 :c -1})