This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-02
Channels
- # announcements (5)
- # babashka (1)
- # beginners (140)
- # braveandtrue (1)
- # calva (28)
- # chlorine-clover (39)
- # cider (8)
- # clj-kondo (1)
- # cljfx (15)
- # cljs-dev (2)
- # clojure (41)
- # clojure-europe (39)
- # clojure-france (3)
- # clojure-germany (5)
- # clojurescript (28)
- # clr (1)
- # css (1)
- # cursive (3)
- # data-science (19)
- # fulcro (14)
- # graalvm (3)
- # hoplon (18)
- # jobs (2)
- # malli (7)
- # meander (2)
- # off-topic (10)
- # pathom (6)
- # re-frame (3)
- # reagent (2)
- # remote-jobs (1)
- # reveal (1)
- # shadow-cljs (5)
Can anyone confirm whether e26-tooltips works (or does not)? For me it doesn't. I get a big black circle but waving the mouse across it has no effect. What should happen is you see a tooltip that tells you the radius of the circle. I'm using JDK 12.0.1 and the "RELEASE" version of cljfx.
@cjmurphy i verified it works for me on the latest cljfx master ... i verified with JDK 11 and 12 on mac os (once i hover, it takes 1-2 seconds for the tooltip to show) hope this helps
Thank you @atdixon. Yes works for me too I just wasn't being patient enough with holding the mouse still for a good period of time.
looking for advice
i have a :label
that is swapped for :text-field
when clicked and i'd like .requestFocus
on the :text-field
after it is added
i've tried ext-on-instance-lifecycle
adding a .sceneProperty
listener (requesting focus when scene is set on the new text-field), but the scene is updated on other rendering operations so the text-field will re-request focus at inopportune times
am wondering if there is a more direct way to achieve this
follow up - if i have the listener remove itself after its first firing then this approach seems to work
but :on-created
doesn't get invoked when i have an :fx/key
this is roughly the code:
(defn task-row [{:tasks/keys [id name]} editing-id]
(if (= id editing-id)
{:fx/type fx/ext-on-instance-lifecycle
:fx/key id
:on-advanced #(let [listener
(reify ChangeListener
(changed [me _ _ v]
(doto ^TextField %2
.requestFocus
.end
(-> .sceneProperty
(.removeListener me)))))]
(-> ^TextField %2 .sceneProperty
(.addListener listener)))
:desc {:fx/type :text-field
:text name}}
{:fx/type fx/ext-on-instance-lifecycle
:fx/key id
:on-advanced #(let [listener
(reify ChangeListener
(changed [me _ _ v]
(doto ^Label %2
.requestFocus
(-> .sceneProperty
(.removeListener me)))))]
(-> ^Label %2 .sceneProperty
(.addListener listener)))
:desc {:fx/type :label
:text name
:focus-traversable true}}))