cljfx

https://github.com/cljfx/cljfx
2020-11-10T17:16:45.140500Z

hi! I'm trying to render a tree-view with tree-items that change its value depending if they are expanded or not but couldn't figure out how. Is it possible with cljfx tree-view component?

vlaaad 2020-11-10T19:50:43.140600Z

I would say it's possible if you listen to :on-expanded-changed . Is it for some sort of a lazy-loading of data? I can try to make it an example...

2020-11-10T20:58:42.141300Z

oh, thanks for the example!

2020-11-10T20:58:53.141500Z

no it isn't for lazy loading

2020-11-10T20:59:33.141700Z

I'm using a tree-view to explore a clojure value (possibly nested collections)

2020-11-10T21:00:05.141900Z

and I'm trying to copy the UX of the javascript chrome console on JS objects

2020-11-10T21:00:53.142100Z

it changes the tree-item text depending on it being collapsed

2020-11-10T21:02:47.142300Z

it would be super handy if the tree-cell describe fn received a extra expanded? value in it's args

vlaaad 2020-11-10T21:54:48.142500Z

Not sure there are tree cells necessary? If you have expanded in the state, you can use it to control tree-item's text

2020-11-10T22:20:44.145500Z

Hi. I'm running into a strange bug where I am doing simple context changes, and the thread seems to hang without reaching the render stage. This happens only in some situations. Sorry that I do not have a clearer description, it is kind of a complex state machine 😕. Curious to hear if anybody knows about general bugs of this kind (i.e., changes that do not reach the render stage), and if there are typical gotchas related to that. 🙏

2020-11-10T22:22:29.145900Z

(no JavaFX involved, just the context management system of cljfx)