Please explain each and every line (after DataTable({ from the segment of the code given below

Please explain each and every line (after DataTable({ from the segment of the code given below

AsishBAsishB Posts: 2Questions: 1Answers: 0

$(function () {
$('#listAllProducts').DataTable({
'processing' : true,
'serverSide' : true,
'searching' : false,
'ordering' : false,
"ajax" : {
'url' : 'manage-new-products',
'data' : function(d) {
d.param1 = $('#param1').val();
//d.param2 = $('#param2').val();

        }
    },
    'dataSrc' : "",
    'columns' : [ {
        'data' : 'productid'                       //productid,etc., are contained in a database
    }, {
        'data' : 'productname'
    }, {
        'data' : 'productstatus'
    }, {
        'data' : 'action'
    }

    ]
});

});
//Method For Searching Records In The List
function searchData() {
$('#listAllProducts').DataTable().draw();
}

Answers

This discussion has been closed.