mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Update iframe.markdown
Minor cleanup and fixing typos Changed all config sections to use {% configuration %} tag.
This commit is contained in:
parent
f4e31fd156
commit
b93d74e540
@ -10,8 +10,6 @@ sharing: true
|
|||||||
footer: true
|
footer: true
|
||||||
---
|
---
|
||||||
|
|
||||||
### Iframe
|
|
||||||
|
|
||||||
Iframe cards are useful to embed outside websites in your dashboard with little effort. One such example is a grafana view. You can also embed files stored in your `config/www` folder and reference them using `/local/<file>`.
|
Iframe cards are useful to embed outside websites in your dashboard with little effort. One such example is a grafana view. You can also embed files stored in your `config/www` folder and reference them using `/local/<file>`.
|
||||||
|
|
||||||
<p class='img'>
|
<p class='img'>
|
||||||
@ -21,16 +19,30 @@ Screenshot of the iframe card.
|
|||||||
|
|
||||||
> Make sure the URL you're embedding has the right protocol and allows to be embedded in an iframe on a different domain. For example if your Home Assistant setup uses https you won't be able to embed http URLs
|
> Make sure the URL you're embedding has the right protocol and allows to be embedded in an iframe on a different domain. For example if your Home Assistant setup uses https you won't be able to embed http URLs
|
||||||
|
|
||||||
**Options**
|
{% linkable_title Options %}
|
||||||
|
|
||||||
| Name | Type | Default | Description
|
{% configuration %}
|
||||||
| ---- | ---- | ------- | -----------
|
type:
|
||||||
| type | string | **Required** | `iframe`
|
required: true
|
||||||
| url | string | **Required** | iframe source url
|
description: iframe
|
||||||
| aspect_ratio | string | `"50%"` | Iframe height-width-ratio
|
type: string
|
||||||
| title | string | Optional | Card title
|
url:
|
||||||
|
required: true
|
||||||
|
description: iframe source url
|
||||||
|
type: string
|
||||||
|
aspect_ratio:
|
||||||
|
required: false
|
||||||
|
description: Iframe height-width-ratio
|
||||||
|
type: string
|
||||||
|
default: "50%"
|
||||||
|
title:
|
||||||
|
required: false
|
||||||
|
description: Card title
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
**Examples**
|
{% linkable_title Examples %}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: iframe
|
- type: iframe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user