-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpanel-filter.js
More file actions
63 lines (54 loc) · 1.18 KB
/
panel-filter.js
File metadata and controls
63 lines (54 loc) · 1.18 KB
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
61
62
63
(function (){
'use strict';
class PanelFilter extends Polymer.Element {
static get is () { return 'panel-filter'; }
static get config () {
return {
properties: {
/**
* Variable for reset filters.
*/
search: {
type: String
},
/**
* Variable for reset filters.
*/
numbersearch: {
type : Number
},
/**
* The z-depth of this element, from 0-5. Setting to 0 will remove the
* shadow, and each increasing number greater than 0 will be "deeper"
* than the last.
*
* @attribute elevation
* @type number
* @default 1
*/
elevation: {
type: Number,
reflectToAttribute: true,
value: 1
}
}
};
} // end config
/**
* reset panel-filter.
*/
_resetfilter () {
this.search = "";
this.numbersearch = "";
var select = this.querySelectorAll('.checkchange');
for (var i = 0; i<=5; i++) {
select[i].checked = false;
}
var dropselect = this.$$('#dropdown');
// console.log("1" , dropselect);
dropselect.selectedItem = null;
// console.log("2" , dropselect);
}
}
customElements.define(PanelFilter.is, PanelFilter);
})();