Autocomplete dropdown - Adding conditional background color to options

Tags: #<Tag:0x00007f8b1cfa60c8>

I’m trying to assign a background color to certain items in a autocomplete cell that is filled via Ajax as in the following image :

I’ve checked the documentation, but I can’t find a renderer or hook that looks like I need

Can you point me in the correct direction to accomplish this?

Hi @eamejia

The supported way to have a formatted list of choices is to use the handsontable cell type. Here http://jsfiddle.net/paestfnr/ is an example. However, if the list of choices is long and you prefer autocomplete cell type you would need to alter the cell type. Using a cell renderer within the autocomplete cell type changes only the default cell, not the list (as shown here http://jsfiddle.net/6nvxa1eo/)