1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-21 15:39:01 +01:00
Files
frontend/panels/iframe/ha-panel-iframe.html
T
Paulus Schoutsen 8c3f760683 Lint panels
2016-07-19 02:25:26 -07:00

44 lines
796 B
HTML

<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../src/layouts/partial-base.html">
<dom-module id='ha-panel-iframe'>
<template>
<style>
iframe {
border: 0;
width: 100%;
height: 100%;
}
</style>
<partial-base narrow="[[narrow]]" show-menu='[[showMenu]]'>
<span header-title>[[panel.title]]</span>
<iframe
src='[[panel.config.url]]'
sandbox="allow-forms allow-popups allow-pointer-lock allow-same-origin allow-scripts"
></iframe>
</template>
</dom-module>
<script>
Polymer({
is: 'ha-panel-iframe',
properties: {
panel: {
type: Object,
},
narrow: {
type: Boolean,
},
showMenu: {
type: Boolean,
},
},
});
</script>