##// END OF EJS Templates
js: use ES6 classes for polymer 2.x
js: use ES6 classes for polymer 2.x

File last commit:

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