datatable with custom filters

Solutions on MaxInterview for datatable with custom filters by the best coders in the world

showing results for - "datatable with custom filters"
Lotus
16 Mar 2017
1var dataTable = $('#list-table').DataTable({
2			dom: 'Bfrtip',
3			buttons: [
4				'copy', 'csv', 'excel', 'pdf', 'print'
5			],
6            'processing': true,
7            'serverSide': true,
8            'serverMethod': 'post',
9			"ajax": {
10                'url':'{{ route("fetch.properties.report")}}',
11                'data': function(data){
12                    // Read values
13                    var status = $('#status').val();
14
15                    // Append to data
16                    data.status = status;
17                }
18                }
19		});
20                $('.filters').on('click',function(){
21                    dataTable.draw();
22                });