crowdint / rails3-jquery-autocomplete

An easy and unobtrusive way to use jQuery's autocomplete with Rails 3

Home Page:http://rubygems.org/gems/rails3-jquery-autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_renderItem is supported?

romaluca opened this issue · comments

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