From 32bcf56584b81172fd9882ba0c2e3b34bd9220e2 Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 21 Apr 2010 09:57:35 -0400 Subject: Autocomplete: Added custom rendering for custom data demo. --- demos/autocomplete/custom-data.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'demos/autocomplete') diff --git a/demos/autocomplete/custom-data.html b/demos/autocomplete/custom-data.html index 57598fa8c..139b41d99 100644 --- a/demos/autocomplete/custom-data.html +++ b/demos/autocomplete/custom-data.html @@ -64,7 +64,13 @@ return false; } - }); + }) + .data( "autocomplete" )._renderItem = function( ul, item ) { + return $( "
  • " ) + .data( "item.autocomplete", item ) + .append( "" + item.label + "
    " + item.desc + "
    " ) + .appendTo( ul ); + }; }); -- cgit v1.2.3