This repository was archived by the owner on Mar 21, 2024. It is now read-only.
forked from daniel-llach/dw-filter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex2.html
More file actions
167 lines (155 loc) · 4 KB
/
index2.html
File metadata and controls
167 lines (155 loc) · 4 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>dw-filter</title>
<!-- context style -->
<link rel="stylesheet" type="text/css" href="./css/style.css">
<!-- dw-filter dependencies -->
<script src="./bower_components/jquery/dist/jquery.min.js" type="text/javascript"></script>
<script src="./bower_components/underscore/underscore-min.js" type="text/javascript"></script>
<script src="./component/dw-filter.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="./component/dw-filter.css">
<!-- dw-typeahead dependencies -->
<script src="./bower_components/dw-typeahead/component/dw-typeahead.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="./bower_components/dw-typeahead/component/dw-typeahead.css">
<!-- dw-list dependencies -->
<script src="./bower_components/dw-list/component/dw-list.js" type="text/javascript"></script>
<script src="./bower_components/Sortable/Sortable.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="./bower_components/dw-list/component/dw-list.css">
</head>
<body>
<div id="contetendorSample" class="contenedorFiltros">
<div id="sample5" class="demoDiv"></div>
</div>
<script type="text/javascript">
// chain select
var full = [
{
id: 1,
primary: 'Cat',
secundary: 'Gray',
selected: false,
group: ['feline']
},
{
id: 2,
primary: 'Dog',
secundary: 'White',
selected: false,
group: ['canine']
},
{
id: 3,
primary: 'Cheetah',
secundary: 'yellow',
selected: false,
group: ['feline']
},
{
id: 4,
primary: 'Fox',
secundary: 'Brown',
selected: false,
group: ['canine']
},
{
id: 5,
primary: 'Culpeo',
secundary: 'Light Brown',
selected: true,
group: ['canine']
},
{
id: 6,
primary: 'Jaguar',
secundary: 'Yellow',
selected: false,
group: ['feline']
},
{
id: 7,
primary: 'Lion',
secundary: 'orange',
selected: false,
group: ['feline']
},
{
id: 8,
primary: 'African Wild Dog',
secundary: 'marbled',
selected: false,
group: ['canine']
},
{
id: 9,
primary: 'Yacare Caiman',
secundary: 'green',
selected: false,
group: ['reptile']
},
{
id: 10,
primary: 'Leopard Gecko',
secundary: 'light brown',
selected: false,
group: ['reptile']
}
];
var empty = [];
$('#sample5').dwFilter({
title: 'title5',
type: 'multiselect',
height: 'auto',
overflow: false,
// search: 'inner',
config: {
key_value_placeholder: 'placeholder',
key_data_attr: 'data'
},
data: [
{
placeholder: "Please select",
data: empty
}
]
});
$('#sample5').dwFilter('destroy');
// $('#sample5').dwFilter({
// title: 'title5',
// type: 'multiselect',
// height: 'auto',
// overflow: false,
// // search: 'inner',
// config: {
// key_value_placeholder: 'placeholder',
// key_data_attr: 'data'
// },
// data: [
// {
// placeholder: "Please select",
// data: empty
// }
// ]
// });
// $('#sample5').dwFilter('destroy');
// $('#sample5').dwFilter({
// title: 'title5',
// type: 'multiselect',
// height: 'auto',
// overflow: false,
// // search: 'inner',
// config: {
// key_value_placeholder: 'placeholder',
// key_data_attr: 'data'
// },
// data: [
// {
// placeholder: "Please select",
// data: full
// }
// ]
// });
</script>
</body>
</html>