I'm trying to auto order the elements in a grid-layout. The elements I'm using are decluttering-card's. The problem is I need to set the order element directly on the childs of the grid but when using the custom:mod-card it puts the order css element on the ha-card which is a child of the mod-card element so the ordering is not applied. So maybe its a possibility to add the order element to view_layout config?
This is my yaml
I'm trying to auto order the elements in a grid-layout. The elements I'm using are decluttering-card's. The problem is I need to set the order element directly on the childs of the grid but when using the
custom:mod-card
it puts the order css element on the ha-card which is a child of the mod-card element so the ordering is not applied. So maybe its a possibility to add the order element to view_layout config? This is my yamlI also tried following but didn't worked because the style is set on the child of card-mod element:
Update and add support for javascript templates so I can dynamically set the order value 🙂