-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexmg-datatable.html
More file actions
43 lines (37 loc) · 982 Bytes
/
exmg-datatable.html
File metadata and controls
43 lines (37 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<link rel="import" href="../polymer/polymer-element.html">
<dom-module id="exmg-datatable">
<template>
<style>
:host {
font-size: 12px;
color: rgba(0,0,0,.78);
font-family: 'Roboto', 'Noto', sans-serif;
-webkit-font-smoothing: antialiased;
}
</style>
<slot></slot>
</template>
<script>
/**
* `exmg-datatable`
* Datatable
*
* @customElement
* @polymer
* @demo demo/index.html
*/
class ExmgDatatable extends Polymer.mixinBehaviors([Polymer.Templatizer], Polymer.Element) {
static get is() { return 'exmg-datatable'; }
ready() {
super.ready();
let templ = this.querySelector('template[colgroup]');
if(!templ) {
return;
}
this.templatize(templ);
this.shadowRoot.appendChild(this.stamp(null).root);
}
}
window.customElements.define(ExmgDatatable.is, ExmgDatatable);
</script>
</dom-module>