how to build a custom filter plugin

how to build a custom filter plugin

WestFarmerWestFarmer Posts: 1Questions: 1Answers: 0

hi, I am using DataTables against a server side api wihch support filtering data like this:

{
// ... other options
filter : {
    logic : 'and', filters : [{
        field : 'userId', operator : 'equals', value : 'foo'
    },{
        field : 'userName', operator : 'contains', value : 'jack'
    }]
}
}

I want to add a 'filter' button before the search box, when user click that button, a filter form will be popped up, let user to choose filter operation from 'equals contains startsWith ...', and fill in filter value, then apply the filters.

how can I do this ?

Answers

This discussion has been closed.