Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82037

how to build a custom filter plugin

$
0
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 ?


Viewing all articles
Browse latest Browse all 82037

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>