Skip to content

superdev0505/datatable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datatable

This is jquery plugin which can show table with many functions.

Requirement

How to Use

<link rel="stylesheet" type="text/css" href="./assets/css/datatable.css" />
<table id="example">
</table>

<script src="./assets/js/datatable.js"></script>
<script>
$(document).ready(function () {
    var datatable = new DataTable({
        table: '#example',
        ajax: '/datatable/getData.php'
    });
});
</script>

Datatable function parameters

parameter type require description
table string required Selector of table
ajax string required Ajax url to get data of table
row_height int optional height of row (default: 40)
pagination int optional amount per page (default: 40)

Datatable Features

  • Resize Column Width
  • Reorder Column
  • Hide / Show Columns
  • Get Data by Ajax
  • Scrolling Pagination
  • Fixed Heaer and Fixed First Column