-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpane-item.html
More file actions
60 lines (46 loc) · 987 Bytes
/
pane-item.html
File metadata and controls
60 lines (46 loc) · 987 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<link rel="import" href="../polymer/polymer-element.html">
<dom-module id="pane-item">
<template>
<style>
:host {
contain: content;
display: flex;
flex-direction: column;
flex: 1;
}
#header {
height: 25px;
cursor: pointer;
}
r
#content {
display: flex;
flex: 1;
}
</style>
<header id="header" on-click="headerCLick">
<slot name="header"></slot>
</header>
<div id="content">
<slot></slot>
</div>
</template>
<script>
class PaneItem extends Polymer.Element {
static get is() { return 'pane-item'; }
static get properties() {
return {
flexGrow: {
type: Number,
value: 1,
notify: true
}
};
}
headerCLick() {
console.log('ey')
}
}
window.customElements.define(PaneItem.is, PaneItem);
</script>
</dom-module>