dazzle icon indicating copy to clipboard operation
dazzle copied to clipboard

Multi-row components

Open xavier630 opened this issue 7 years ago • 4 comments

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?

xavier630 avatar Apr 01 '17 23:04 xavier630

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.

Raathigesh avatar Apr 02 '17 06:04 Raathigesh

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

xavier630 avatar Apr 14 '17 06:04 xavier630

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

Raathigesh avatar Jul 22 '17 03:07 Raathigesh

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

cphoover avatar Sep 19 '18 22:09 cphoover