I’d like to create a view with BOTH a custom sidebar (one that lets me put card in it) and custom layout (e.g. width / height control). But one has to contain this
I actually want to have a view with both sidebar and layout control where I can control width of each column etc. Is there any way to achieve something similar?
Here is the code I used to recreate energy dashboard, but with wider sidebar:
type: custom:layout-card
layout_type: custom:grid-layout
layout_options:
grid-template-columns: auto 380px
grid-template-rows: 85px auto
grid-template-areas: |
"selector selector"
"main sidebar"
Selector are is used to put there date selector, main represent main energy graphs and sidebar is for stack of various related cards. So obviously I’m not using custom sidebar card, but recreating it using layout card.
As main is grid cell, you can use it to put any card insode, including another layout card or stack in cards combination to build layout you want.
Here is output: