Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Conversation

@jjasonclark
Copy link
Contributor

Layouts only work in one direction, columns then rows. This change allows layouts in layouts so you can make more complex layouts.

Panels now handle layout. Panels can create sub views, including more panels. The initial layout file read method adds a bit to the result to assume the outer most array of views is a panel. Then normal view creation is used to kick off the whole screen layout.

  • Extract view creation to view/index.js
  • Create Panel class to handle layouts
  • Migrate layout tests to panel
  • Allow panels to include panels

This includes much of the changes from PR #83 to create a view factory

Create a Panel class to handle all layout
Move view creation into its own file
Dynamically convert all configs into panels
Copy link
Contributor

@mscottx88 mscottx88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. I'm going to play with the tool and check out these new behaviors!

@jjasonclark
Copy link
Contributor Author

Copy link
Contributor

@mscottx88 mscottx88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jjasonclark jjasonclark merged commit 74ab60f into FormidableLabs:master Jan 2, 2018
@jjasonclark jjasonclark deleted the panel_class branch January 2, 2018 23:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants