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

Multi-row components #17

Open
xavier630 opened this issue Apr 1, 2017 · 4 comments
Open

Multi-row components #17

xavier630 opened this issue Apr 1, 2017 · 4 comments

Comments

@xavier630
Copy link
Contributor

Hey, am I able to make widgets that take up multiple rows like this?
image

I've tried nesting rows within columns but it doesn't seem to work. It may be that I have messed up the object as the nested arrays and curly braces get really complex. If you have an example, could you please post it?

@Raathigesh
Copy link
Owner

Nested rows in a column is not supported right now. But having a single row with multiple columns and having multiple widgets in a single column should work. A sample layout is given below.

{
  layout: {
      rows: [{
        columns: [{
          className: 'col-md-6',
          widgets: [{key: 'RocketWidget'}],
        }, {
          className: 'col-md-3',
          widgets: [{key: 'RocketWidget'}, {key: 'RocketWidget'}],
        }, {
          className: 'col-md-3',
          widgets: [{key: 'RocketWidget'}, {key: 'RocketWidget'}],
        }],
      }]
  }
}

FYI, I'm planning to rewrite dazzle which allows for more flexible layout using react-grid-layout. Keep an eye out for the release.

@xavier630
Copy link
Contributor Author

xavier630 commented Apr 14, 2017

Any ETA on the release? I'm looking forward to it as I'll be able to lay everything out properly.

@Raathigesh
Copy link
Owner

Raathigesh commented Jul 22, 2017

I'm sorry I don't have an ETA at the moment. Been busy with another project.

@cphoover
Copy link

I haven't tested this yet but is Dazzle nestable?

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