JuliaGizmos / InteractBase.jl

Build interactive HTML5 widgets in Julia
Other
27 stars 23 forks source link

Get interact bulma toggles working with jupyter #89

Closed djsegal closed 5 years ago

djsegal commented 6 years ago

Resolves:

Only tried it on jupyter (and changed some of your logic), so make sure to give it a try!!!


screen shot 2018-08-15 at 9 38 06 pm

piever commented 6 years ago

Thanks! flex_row definitely needs some love. Some thoughts:

  1. Does this also fix togglebuttons without label in case of many buttons? i.e. togglebuttons(["R_0", "B_0", ...]) ?

  2. What happens to slider if the label has more than one word? Say slider(1:100, label = "number of bins") ?

  3. Somehow, I'm wondering whether getting the margin should be a job for flex_row or if it should be outside of it (otherwise it may be tricky to remove them), but maybe we can just use some default margin that can be changed with some keyword?

djsegal commented 6 years ago

Testing 1 and 2 later

To 3, are you talking about the left/right gutter \~or\~ the spacing between checkboxes?

piever commented 6 years ago

I was thinking about the left/right margin on the screen (for example width:90%;). Maybe better to put the whole @manipulate GUI into some sort of container (like this one here) and not add any side margin to flex_row?

Or maybe flex_row with 2-3 arguments could have no margin and flex_row with one argument could have the margin and be some sort of container (as otherwise it's kind of pointless) so if you want 2-3 arguments as margin you do flex_row(flex_row(a,b))

djsegal commented 6 years ago

For 2 & 3,

screen shot 2018-08-17 at 11 28 32 pm

What do you think?

piever commented 5 years ago

Superseded by #134