Add card_options. Make compatible with legacy card-modder

This commit is contained in:
2019-11-11 21:03:02 +01:00
parent 8eeea0e700
commit 49e70438ff
3 changed files with 18 additions and 7 deletions

View File

@@ -31,12 +31,15 @@ justify_content: <justify_content>
ltr: <ltr>
cards:
<cards>
card_options:
<card_options>
```
## Options
- `<cards>` **Required** A list of lovelace cards to display.
- `<card_options>` are options that are applied to all cards.
- `<layout>` The layout method to use. `auto`, `vertical` or `horizontal`. See below. Default: `auto`.
- `<min_height>` The minimum length of a column in `auto` layout.
- `<min_height>` The minimum length of a column in `auto` layout. Default: `5`.
- `<min_columns>` The minimum number of columns to use. Default: `1`.
- `<max_columns>` The maximum number of columns to use. Default: `100`.
- `<column_width>` Width of columns. Default: `300px`.
@@ -234,6 +237,8 @@ cards:
## A few tips
- `card_options` works really well together with [card-mod](https://github.com/thomasloven/lovelace-card-mod).
- Layout-cards can be placed inside other layout-cards or in vertical-stack cards:
![stacked](https://user-images.githubusercontent.com/1299821/68598908-f0885880-049f-11ea-814f-b91ee6ee9eef.png)