-
Notifications
You must be signed in to change notification settings - Fork 9
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
Use css grid to layout form #62
Comments
@WangLarry
BTW - our advanced goal is to create also a Layout editor, where you will have all your defined fields in a list and you can drag & drop fields to some area - to create different layouts, and behind the scene it will translate to the sections json. |
pr - #65 available on v1.0.7 |
Beautiful and elegant! @galhavivi |
Maybe It looks pleasant to get rid of 'getGrid()' in array?
Oh, current syntax can style every row. |
I agree its more clean :) and when I'll use it ill probably do like you suggested... but i think it might be better to keep the demo with the getGrid so it will be more clear to people that the grid configuration is an object of { templateAreas, elements } - rather than array (they might miss the last row of sections.map if well change it) |
Maybe we should show the feature of gird - can span rows. For example:
|
Not sure i understand what you meant ..? |
'benefits' can occupy two rows. See my updated picture |
done :) i was slow here lol |
Is your feature request related to a problem? Please describe.
Current react-layout use Section and Box to align component, which is flexible. But I feel it is not Intuitive,specially Box nested Box in source code.
Describe the solution you'd like
Css grid is modern layout, which is intuitive and powerful. Specially grid-area is suit to layout form.
Describe alternatives you've considered
For example, we can define form layout like this:
Changing grid-template-areas will change layout. Grid-template-areas string is just like EXCEL, can span cols and rows, is very flexible.
The text was updated successfully, but these errors were encountered: