-
Notifications
You must be signed in to change notification settings - Fork 5
/
cosmoz-omnitable-item-expand-line.html
58 lines (49 loc) · 1.3 KB
/
cosmoz-omnitable-item-expand-line.html
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
<link rel="import" href="../shadycss/apply-shim.html">
<link rel="import" href="../polymer/polymer-element.html"/>
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html" />
<dom-module id="cosmoz-omnitable-item-expand-line">
<template>
<style>
:host {
@apply --layout-horizontal;
@apply --layout-center;
@apply --layout-wrap;
}
.item-expand-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: initial;
@apply --cosmoz-omnitable-item-expand-label;
}
.item-expand-value {
text-align: right;
flex-grow: 1 !important;
flex-basis: 100px !important;
white-space: nowrap;
@apply --cosmoz-omnitable-item-expand-value;
}
</style>
<div class="itm-expand-label" title="[[ column.title ]]">[[ column.title ]]</div>
<div class="item-expand-value">
<slot></slot>
</div>
</template>
</dom-module>
<script>
window.Cosmoz = window.Cosmoz || {};
class OmnitableItemExpandLine extends Polymer.Element {
static get is() {
return 'cosmoz-omnitable-item-expand-line';
}
static get properties() {
return {
column: {
type: Object
}
};
}
}
customElements.define(OmnitableItemExpandLine.is, OmnitableItemExpandLine);
Cosmoz.OmnitableItemExpandLine = OmnitableItemExpandLine;
</script>