rhodecode-unsafe-html.html
31 lines
| 847 B
| text/html
|
HtmlLexer
r3172 | <link rel="import" href="../../../../../../bower_components/polymer/polymer-element.html"> | |||
r703 | ||||
<dom-module id="rhodecode-unsafe-html"> | ||||
<template> | ||||
<style include="shared-styles"></style> | ||||
r2915 | <slot></slot> | |||
r703 | </template> | |||
r3149 | <script> | |||
r3172 | class RhodecodeUnsafeHtml extends Polymer.Element { | |||
static get is() { | ||||
return 'rhodecode-unsafe-html'; | ||||
} | ||||
static get properties() { | ||||
return { | ||||
text: { | ||||
type: String, | ||||
observer: '_handleText' | ||||
} | ||||
r3149 | } | |||
r3172 | } | |||
_handleText(newVal, oldVal) { | ||||
r3149 | this.innerHTML = this.text; | |||
} | ||||
r3172 | } | |||
r3149 | ||||
r3172 | customElements.define(RhodecodeUnsafeHtml.is, RhodecodeUnsafeHtml); | |||
r3149 | </script> | |||
r703 | </dom-module> | |||