From 399b9e6760eccc1066e489f4d7b9a12e2b8a49f3 Mon Sep 17 00:00:00 2001 From: Rene Nulsch <33263735+ReneNulschDE@users.noreply.github.com> Date: Sat, 27 Jan 2018 08:46:06 +0100 Subject: [PATCH] Panel_Iframe - Allow relative urls in config (#4477) * Panel_Iframe - Allow relative urls in config * Fix configuration --- source/_components/panel_iframe.markdown | 32 ++++++++++++++++++++---- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/source/_components/panel_iframe.markdown b/source/_components/panel_iframe.markdown index 5b170a310b1..e80d6617072 100644 --- a/source/_components/panel_iframe.markdown +++ b/source/_components/panel_iframe.markdown @@ -28,12 +28,34 @@ panel_iframe: fridge: title: 'Fridge' url: 'http://192.168.1.5' + otherapp: + title: 'Other App' + url: '/otherapp' ``` -Configuration variables: -- **[panel_name]** (*Required*): Name of the panel. - - **title** (*Required*): Friendly title for the panel. Will be used in the sidebar. - - **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`. - - **url** (*Required*): The URL to open. +{% configuration %} + panel_iframe: + description: Enables the panel_iframe component. Only allowed once. + 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 %}