а

dhtmlxList filter with many values


#1

Hy,
I wonder how to do somthing like that :

myDhtmlxList.filter('#tag#', "value OR value OR value");

Or maybe

myDhtmlxList.filter('#tag#', ['value 1', 'value 2']);

Thankyou


#2

You may use the required function in your filter method.
smth like:
myList.filter(function(obj){
if (obj.value ==value1 || obj.value == value2) return true;
return false;
});
docs.dhtmlx.com/list__manipulat … #filtering


#3

Shame on me I was a little tired I think
Thank you