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

more convenient api for sizing rows and columns #225

Open
1 task
jwkvam opened this issue Apr 21, 2018 · 0 comments
Open
1 task

more convenient api for sizing rows and columns #225

jwkvam opened this issue Apr 21, 2018 · 0 comments

Comments

@jwkvam
Copy link
Owner

jwkvam commented Apr 21, 2018

It's clunky having to set the size of each row and column individually. It would be easier to read and write to set them in one line. For example let's try setting the rows to have sizes "auto", "1fr", "2fr".

Current api:

app.rows[0].auto()
app.rows[1].fraction(1)
app.rows[2].fraction(2)

Strings?

app.rows = ['auto', '1fr', '2fr']

Functions/properties?

app.rows = [auto, fraction(1), fraction(2)]
  • poll users when asking them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant