Angular - select filter, not showing correctly

Angular - select filter, not showing correctly

ArterArter Posts: 1Questions: 1Answers: 0

Hi, i use datatables in angular. And set .withColumnFilter for filtering tables.

.withColumnFilter({
aoColumns: [
null,
{
type: 'select',
bRegex: false,
values: function (aoData, oSettings) {
var keys = new Array();
var values = new Array();
for (i = 0; i < aoData.length; i++) {
var item = aoData[i]._aData[3];
if (keys[item] == null) {
keys[item] = true;
values.push({value: item, label: 'The ' + item}); }}
return values; }}] });

Select list is populate with data from table, and its ok. But after came back, in select list, on first line is list of all array, inline. Here is image how this look

This discussion has been closed.