forked from ActindoElements/actindo-grid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathactindo-grid-filter-between-date.html
51 lines (46 loc) · 1.41 KB
/
actindo-grid-filter-between-date.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
<link rel="import" href="../actindo-date-picker/actindo-date-picker.html">
<dom-module id="actindo-grid-filter-between-date">
<template>
<style>
.container
{
display: flex;
}
actindo-date-picker:first-child
{
margin-right: 10px;
}
</style>
<div class="container">
<actindo-date-picker
label="From"
value="{{value.from}}"
></actindo-date-picker>
<actindo-date-picker
label="To"
value="{{value.to}}"
></actindo-date-picker>
</div>
</template>
<script>
class ActindoGridFilterBetweenDate extends Polymer.Element {
static get is() { return 'actindo-grid-filter-between-date'; }
static get properties() {
return {
value: {
type: Object,
notify: true,
value: function() {
return {};
}
}
}
}
getDisplayValue(value)
{
return `${value.from} and ${value.to}`;
}
}
customElements.define(ActindoGridFilterBetweenDate.is, ActindoGridFilterBetweenDate);
</script>
</dom-module>