_renderItem is supported?
romaluca opened this issue · comments
Luca Romagnoli commented
i' m trying to use jquery-ui renderitem for custom the label items.but it doesn't work. Is it supportedi in railsAutocomplete?
I use it like this:
$('#event_place')._renderItem = ( ul, item ) ->
console.log item.value + " " + item.full_address
return $( "
.attr( "data-value", item.value )
.append( item.label + "" + item.full_address + "")
.appendTo( ul )
Thanks