Created
October 4, 2012 03:37
-
-
Save eduardolundgren/3831330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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