PHP code example of visiosoft / datatable_helper-extension

1. Go to this page and download the library: Download visiosoft/datatable_helper-extension library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

visiosoft / datatable_helper-extension example snippets


let exampleTable = {
    element: $('#exampleTable'),
    filterElement: $('#exampleTable  thead th'),
        data: [
        {
            data: ((row) => {
                return row.data?.data || "-"
            }),
        },
        {
            data: ((row) => {
                return row.data?.data || "-"
            }),
        }
    ]
}

dtHelper.setScrollCollapse(true);
dtHelper.setFilter(false);
dtHelper.setTableElement(exampleTable);
activeTransactionsTable = dtHelper.initDataTable();

// Live Reload
setInterval(function () {
    exampleTable.ajax.reload()
}, 30000)