-
Notifications
You must be signed in to change notification settings - Fork 543
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
Add support for for
and if
in GridLayout
#358
Comments
Some implementation instructions are in #574 (reply in thread) We need to find a behavior of what happens to column and row detection when there is a if or a for. for a |
I can think of four different ways of writing a "dynamic" grid layout:
I guess (1)-(3) are special cases of (4), but is it even possible to implement that? |
Would it be possible to have a StaticGridLayout with a fixed num_rows and num_cols which accepts for loops? |
Yeah, i think this would make sense to have these properties in the GridLayout. |
Another solution would be to add a support for wrapping to HorizontalLayout and VerticalLayout (à la flex-wrap in css). |
Has there been any progress on this one? What is a possible workaround? |
Right now, the workaround is to use HorizontalLayout in VerticalLayout. Or to do the layouting "manually" using x, y bindings |
I'm sorry, I would like to know if there are other dynamic methods with better performance than using |
Would love that too, thanks! |
After #349 outlined that there were build errors - and those are fixed now - it would still be desirable to use
if
andfor
in grid layouts.The text was updated successfully, but these errors were encountered: