Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created October 4, 2012 03:37
Show Gist options
  • Save eduardolundgren/3831330 to your computer and use it in GitHub Desktop.
Save eduardolundgren/3831330 to your computer and use it in GitHub Desktop.
@var content
--
<!DOCTYPE html>
<html>
<head>
<script src="/js/alloy-ui/aui/aui.js"></script>
<link rel="stylesheet" href="/js/alloy-ui/aui-skin-classic/css/aui-skin-classic-all-min.css" type="text/css" />
<link rel="stylesheet" href="assets/css/basic.css" type="text/css" />
</head>
<body>
<h1>Alloy AutoComplete</h1>
<h4>Start typing the name of a continent (such as America, Europe, or Asia)</h4>
<div id="myAutoComplete"></div>
<script>
AUI().use('aui-autocomplete', function(A) {
var continents = ['America', 'Europe', 'Asia', 'Africa', 'Oceania', 'Antarctica'];
var autoComplete = new A.AutoComplete({
dataSource: continents,
contentBox: '#myAutoComplete'
});
autoComplete.render();
});
</script>
</body>
</html>
--
@include header.html
--> content
<pre>--> content</pre>
@include footer.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment