Weather-Cal icon indicating copy to clipboard operation
Weather-Cal copied to clipboard

Feature Request: Nested rows and columns in the UI layout builder

Open grantavery opened this issue 3 years ago • 0 comments

Hello, love the widget's customizability! One thing I'd love even more is the ability to nest groups of elements (see below for an example). For example, let's say I already am inside of the right side column of a row (column(95) in the example), and I want to have the battery and sunrise elements display horizontally. Ideally, I'd be able to put a set of rows inside of that column, and then divide again with columns within those inner rows to put my battery and sunrise elements horizontally in the UI.

Having taken a peek at Weather Cal code.js, I can see this request would require major re-architecting of the layout system, but I think it would make the widget as a whole much more valuable and extensible to users. Thanks!

const layout = `
  row {
    column {
      events
      hourly
      daily
    }
    column(95) {
      row {
        column {
          date
          current
          future
        }
      }
      row {
        column {
          battery
        }
        column {
          sunrise
        }
      }
    }
  }
`

grantavery avatar Feb 22 '21 21:02 grantavery