-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·31 lines (28 loc) · 882 Bytes
/
index.html
File metadata and controls
executable file
·31 lines (28 loc) · 882 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><multi-value-suggestbox></title>
<!-- Importing Web Component's Polyfill -->
<script src="bower_components/platform/platform.js"></script>
<!-- Importing Custom Elements -->
<link rel="import" href="src/multi-value-suggestbox.html">
</head>
<body>
<multi-value-suggestbox id="multi_suggest"
options='{
"allow_space": true,
"allow_nonmatching": true
}'>
</multi-value-suggestbox>
<script>
addEventListener('polymer-ready', function() {
document.querySelector('#multi_suggest').setFocus();
});
addEventListener('input-changed', function(e) {
var el = document.querySelector('#multi_suggest');
el.suggestions = ["Alice", "Ali", "Bob", "Fitzpatrick", "Juan", "Kaya", "Thomas", "Zed"];
});
</script>
</body>
</html>