diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-03-09 17:41:46 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-03-09 17:41:46 +0000 |
commit | ea1d48ab0a327ec9a2ce6f18989cd1ca5e1dbba5 (patch) | |
tree | a6605f195f0a2a03838c60c5746ce673c7b7d490 /ctrack/static/js/project.js | |
parent | 0f2c9fc6fddb7a1e435ab7d1ca8962383a7cc731 (diff) |
better formatting for table using Datatables
Diffstat (limited to '')
-rw-r--r-- | ctrack/static/js/project.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ctrack/static/js/project.js b/ctrack/static/js/project.js index 2df7245..1679114 100644 --- a/ctrack/static/js/project.js +++ b/ctrack/static/js/project.js @@ -1,4 +1,9 @@ /* Project specific Javascript goes here. */ $(document).ready(function() { - $('#datatable').DataTable(); + $('#datatable').DataTable({ + ordering: true, + searching: true, + dom: 'B<"clear">lfrtip', + buttons: true + }); } ); |