github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 562
    • 91
  • Source
  • Commits
  • Network (91)
  • Graphs
  • Tree: 32bcf56

click here to add a description

click here to add a homepage

  • Switch Branches (7)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (18)
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Autocomplete: Added custom rendering for custom data demo.
scottgonzalez (author)
Wed Apr 21 06:57:35 -0700 2010
commit  32bcf56584b81172fd98
tree    76256616d8e77b5bc673
parent  6e77ee19bc1c6b8f0b41
M demos/autocomplete/custom-data.html 8 ••••
Txt demos/autocomplete/custom-data.html
  • View file @ 32bcf56
... ...
@@ -64,7 +64,13 @@
64 64
         
65 65
         return false;
66 66
       }
67  
-    });
  67
+    })
  68
+    .data( "autocomplete" )._renderItem = function( ul, item ) {
  69
+      return $( "<li></li>" )
  70
+        .data( "item.autocomplete", item )
  71
+        .append( "<a>" + item.label + "<br>" + item.desc + "</a>" )
  72
+        .appendTo( ul );
  73
+    };
68 74
   });
69 75
   </script>
70 76
 </head>

0 notes on commit 32bcf56

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server