Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout Options for Widgets #48

Closed
JobJob opened this issue Jan 6, 2015 · 7 comments
Closed

Layout Options for Widgets #48

JobJob opened this issue Jan 6, 2015 · 7 comments

Comments

@JobJob
Copy link
Member

JobJob commented Jan 6, 2015

Is there any way to control where widgets will appear when displaying more than one of them? E.g. say I wanted to have multiple checkboxes side by side. They seem to stack vertically by default. Something like hstack in Gadfly would be great. I guess this is somewhat related to #38 which I also would very much like to see.

Would be happy to have a bash at it but not sure really where to start.

Ta!

@shashi
Copy link
Member

shashi commented Feb 23, 2015

Hey this is something I'm trying to address via Canvas. I'll update here when you can use it.

@JobJob
Copy link
Member Author

JobJob commented Feb 25, 2015

Legend! Cheers.

@ma-laforge
Copy link

Just a general comment:

Interact almost needs to be able to provide a similar level of control over layout that toolkits like GTK+ provide if we (users) are to start building notebooks of moderate complexity.

I am starting to use ~half a dozen controls, and it is already quite difficult to keep everyting on one screen & easy for the user to understand.

...the problem is probably how one provides that level of control while maintaining the ease of use that Interact currently achieves.

@JobJob
Copy link
Member Author

JobJob commented Dec 11, 2016

The PR linked above has hbox and vbox which I think should be a good start.

Also on master as of this week you have slider(...; orientation="vertical")

@JobJob
Copy link
Member Author

JobJob commented Dec 11, 2016

@ma-laforge You can try it easily btw with

Pkg.checkout("Interact", "jbj/hbox-vbox")
#then e.g.
hbox( slider(1:10), vbox(slider(11:20), checkbox()))

Would be good to get your feedback.

@ma-laforge
Copy link

Excellent. I will probably want to use it in the near future.

@JobJob
Copy link
Member Author

JobJob commented Dec 15, 2016

Ok good. This is now on master, would be great if you can try it out and let us know how it works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants