Can I combine the multiple search criteria across multiple columns

Can I combine the multiple search criteria across multiple columns

_JC_JC Posts: 1Questions: 1Answers: 0

Using the API / javascript

For example I have a column named 'colour' and a column named 'shape' In the rows I have:
Pink Square
Red Square
Pink Circle
Blue Triangle
Blue Circle

Is it possible to filter the
Pink Circle
AND
Blue Triangle

myTable
.column(0)
.search(['Pink', 'Blue'].filter(Boolean).join("|"), true, false)
.column(1)
.search(['Circle', Triange].filter(Boolean).join("|"), true, false)
.draw();

Using the above I get
Pink Square
Pink Circle
Blue Triange
Blue Circle

Answers

This discussion has been closed.