yiisoft/yii — pull request #1987 by dzentota (2013-01-15 14:10:47+00:00)
Title: Change #1986. Added support of _renderItem in CJuiAutoComplete

Added support of _renderItem to be able to use custom renderer like this,
$( "#ID" ).autocomplete({
minLength: 2,
source: customSource,
}).data( "autocomplete" )._renderItem = function( ul, item ) {
return $( "
" )
.data( "item.autocomplete", item )
.append( "" + item.label + "
" + item.desc + "" )
.appendTo( ul );
};
});
see http://jqueryui.com/autocomplete/#custom-data