Fork me on GitHub
#re-frame
<
2017-01-08
>
qqq21:01:12

Is there a tree viewer coming to re-com any time soon? If not, is there a easy way to fake it using vbox/hbox ?

qqq21:01:32

Imagine browing a directory tree with expanding/collapsin folders. That's basically all I want.

mikethompson21:01:48

No current plans for it

mikethompson21:01:44

Always enthusiastic about contributions.

qqq21:01:47

@mikethompson : this might be naive: are there any performance issues (besides DOM redraws) in implementing a treeview? naively, it seems like each folder has a boolean called "expanded?" and there is a DOM element which depends on that r-atom, showing the collapsed view in one case and the expanded view in another case

mikethompson21:01:20

Yeah, i imagine it being fairly straight forward

qqq21:01:44

actually, using UL/LI would be even easier

mikethompson21:01:14

Obviously any sufficiently large set of DOM nodes could have performance problems. So it depends on how big the tree is

qqq21:01:30

Yeah, but not working -> working is the greatest performance gain of all.

qqq21:01:41

I don't see any re-com components for ul/li.

qqq21:01:00

Is there a easy way in reagent to toggle the "bullet" of a list item? i.e. a square with a plus in it for not expanded, and a squared with a minus for already expanded.

qqq22:01:26

can h-split set minimum and maximm width of either panel?

notanon22:01:46

whats the name of the thing that draws a little widget on your page that lets you view the state of your app-db? i saw it in a re-frame video somewhere but i cant remember the name of it

notanon23:01:00

found it in my youtube history

qqq23:01:17

re-frisk

qqq23:01:36

https://github.com/Day8/re-com/blob/master/src/re_demo/button.cljs#L84-L91 <-- is the normal way to do hover in re-frame to do it manually (as shown in the code) rather than through css ?

notanon23:01:10

just my guess, but i'd say there's not a preferred way regarding re-frame. probably a preferred way with general web development to do it with css (take my unqualified advice with a grain of salt)

qqq23:01:57

@notanon: that's my take too

qqq23:01:18

the thing about re-frame is that it's been telling me everything I have been doling is wrong ... and I have been agreeing with re-frame over time

notanon23:01:24

i've been reading thru the re-frame documents and just nodding my head over and over again... my neck hurts from all the agreeing i've been doing with re-frame

notanon23:01:56

i feel like it is all so intuitive

notanon23:01:04

and exactly how i would do things

notanon23:01:15

(if i had sat down for years and tried to work everything out)