Column filter option values for an array of objects

Hi! I’m currently evaluating handsontable and just wanted to say HoT is pretty neat. However, I’m having trouble getting the column filter menu’s value options to display properly. The problem I’m having is the filter values display as [object Object] instead of the name of the object as shown here:

Is it possible to somehow get the column filter values to display the array’s name instead of [object Object] without changing the structure of the data array?

Here is the jsfiddle: Handsontable example - JSFiddle - Code Playground

Any help would be appreciated, thanks for your time!

Hi @soggypancakes

The Filters plugin does not support object data; the list of values has to be an array of primitives. You’d need to clone the plugin (to create a custom plugin) and make alterations to it to have a working plugin and be able to update to newer versions of Handsontable as they are published.

I’ll check it out, thank you for taking the time to take a look at this!

1 Like