I've overridden AC's HTML to use a table, the mouseover hover effect and select works the same but key up and key down doesn't have any effect now. How can I make key events work with an AC table?
globalSearch._renderItem = function(table, item) {
return $( '<tr class="result-row"></tr>' )
.data( "item.autocomplete", item )
.append('<td class="ac-search-col"></td>'+
'<td class="result-img-col"><img src="x" /></td>'+
'<td class="result-info">'+item.val'</td>')
.appendTo( table );
});
globalSearch._renderMenu = function(ul, items) {
var self = this;
ul.append('<table class="ac-search-table"></table>');
$.each( items, function( index, item ) {
self._renderItem( ul.find("table"), item );
});
};
Edit:
Here is the fiddle: http://jsfiddle.net/CpTAh/24/
` and `- ` - Is there any chance you could just use `display: table-cell` in your CSS, or other CSS (constant width's and floats?) and forgoe the use of a `
` ?
– gnarf Jan 16 '13 at 14:18