Skip to content

An independent data table using native JavaScript. Supports search, sort, pagination, select number records to display

License

Notifications You must be signed in to change notification settings

josephgcedeno/DatatableFromScratchNojQueryDependency

Repository files navigation

To setup:

  • Import the css and js file from dist folder to your html or any templating engine:
      <link rel="stylesheet" type="text/css" href="assets/dist/css/style.css">
      <script type="text/javascript" src="assets/dist/js/script.min.js"></script>
    
  • At the bottom. Create a script tag then write this:
      window.addEventListener("load", function() 
      {
    
          var ref = new datatable('table'); // this table string is from DOM tag.
          ref.sortableColumn([true,true,true,true,true,true]); // You can specify which column would be sorted
    
      });
    

Learning

About

An independent data table using native JavaScript. Supports search, sort, pagination, select number records to display

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages