Answers for "datatable with custom filters"

0

datatable with custom filters

var dataTable = $('#list-table').DataTable({
			dom: 'Bfrtip',
			buttons: [
				'copy', 'csv', 'excel', 'pdf', 'print'
			],
            'processing': true,
            'serverSide': true,
            'serverMethod': 'post',
			"ajax": {
                'url':'{{ route("fetch.properties.report")}}',
                'data': function(data){
                    // Read values
                    var status = $('#status').val();

                    // Append to data
                    data.status = status;
                }
                }
		});
                $('.filters').on('click',function(){
                    dataTable.draw();
                });
Posted by: Guest on June-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language