-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (44 loc) · 1.54 KB
/
index.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<title>Select Dropdown with search demo</title>
<link rel="stylesheet" href="./selectToSearch.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,500" />
<style>
body {
text-align: center;
}
[v-cloak] {
display: none;
}
</style>
</head>
<body v-cloak>
<select id='native-select-box'>
<option value="1">This is Awesome</option>
<option value="2">Search anything</option>
<option value="3">Vue is superfast</option>
<option value="4">Vue Event Modifiers rocks</option>
</select>
<searchable-dropdown replace-with="#native-select-box" :selected-value.sync='selectedData'></searchable-dropdown>
<pre>Text: {{selectedData.text}} | Value: {{selectedData.value}}
</pre>
<script src="https://cdn.jsdelivr.net/vue/1.0.25/vue.min.js"></script>
<script src="./selectToSearch-es5.js"></script>
<script>
new Vue({
el: 'body',
data: {
selectedData: {
text: '',
value: 0
}
}
});
</script>
</body>
</html>