mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 19:26:50 +00:00
Panel_Iframe - Allow relative urls in config (#4477)
* Panel_Iframe - Allow relative urls in config * Fix configuration
This commit is contained in:
parent
3177f20493
commit
399b9e6760
@ -28,12 +28,34 @@ panel_iframe:
|
|||||||
fridge:
|
fridge:
|
||||||
title: 'Fridge'
|
title: 'Fridge'
|
||||||
url: 'http://192.168.1.5'
|
url: 'http://192.168.1.5'
|
||||||
|
otherapp:
|
||||||
|
title: 'Other App'
|
||||||
|
url: '/otherapp'
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
|
||||||
|
|
||||||
- **[panel_name]** (*Required*): Name of the panel.
|
{% configuration %}
|
||||||
- **title** (*Required*): Friendly title for the panel. Will be used in the sidebar.
|
panel_iframe:
|
||||||
- **icon** (*Optional*): Icon for entry. Pick an icon that you can find on [materialdesignicons.com](https://materialdesignicons.com/) to use for your input and prefix the name with `mdi:`. For example `mdi:car`, `mdi:ambulance`, or `mdi:motorbike`.
|
description: Enables the panel_iframe component. Only allowed once.
|
||||||
- **url** (*Required*): The URL to open.
|
required: true
|
||||||
|
type: map
|
||||||
|
keys:
|
||||||
|
panel_name:
|
||||||
|
description: Name of the panel. Only allowed once.
|
||||||
|
required: true
|
||||||
|
type: map
|
||||||
|
keys:
|
||||||
|
title:
|
||||||
|
description: Friendly title for the panel. Will be used in the sidebar.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
url:
|
||||||
|
description: The absolute URL or relative URL with an absolute path to open.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
icon:
|
||||||
|
description: Icon for entry. Pick an icon that you can find on [materialdesignicons.com](https://materialdesignicons.com/) to use for your input and prefix the name with `mdi:`. For example `mdi:car`, `mdi:ambulance`, or `mdi:motorbike`.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user