mirror of
https://github.com/home-assistant/frontend.git
synced 2026-05-21 15:39:01 +01:00
44 lines
796 B
HTML
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>
|