r827 - in branches: 1.7/demos/functional experimental/demos/functional experimental/demos/functio...
Author: paul.bakaus
Date: Thu Oct 23 06:24:45 2008
New Revision: 827
Added:
branches/experimental/demos/functional/
branches/experimental/demos/functional/templates/
branches/experimental/demos/functional/templates/ui.autocomplete.html
Removed:
branches/1.7/demos/functional/
Log:
autocomplete: moved autocomplete from 1.7 to experimental
Added: branches/experimental/demos/functional/templates/ui.autocomplete.html
==============================================================================
--- (empty file)
+++ branches/experimental/demos/functional/templates/ui.autocomplete.html
Thu Oct 23 06:24:45 2008
@@ -0,0 +1,32 @@
+<script type="text/javascript">
+
+ var autocomplete_data
= '["aero", "airplane", "book","movie","music","sports","skating","swim"]';
+
+ var model = {
+
+ renderAt: '#containerDemo',
+
+ title: 'Autocomplete Demos',
+
+ demos: [
+
+ {
+ title: 'Simple autocomplete',
+ desc: 'With few lines of code you could build a autocomplete. You can
try more options on the fly! ',
+ html: '<input id="autocomplete" type="text" /> (Try type <em>a</em>,
<em>m</em> or <em>s</em>)',
+ destroy: '$("#autocomplete").autocomplete("destroy");',
+ options: [
+ { desc: 'Attach a autocomplete',
source: '$("#autocomplete").autocomplete({data:'+autocomplete_data+'});' }
+ ]
+ }
+
+ ]
+ };
+
+ $(function(){
+
+ uiRenderDemo(model);
+
+ });
+
+</script>
\ No newline at end of file