DataTables for pseudo devices tab
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| <table class="table table-bordered table-striped nd_floatinghead"> | ||||
| <table id="data-table" class="table table-striped table-bordered" width="100%" cellspacing="0"> | ||||
|   <thead> | ||||
|     <tr> | ||||
|       <th class="nd_center-cell">Device Name</th> | ||||
| @@ -60,3 +60,21 @@ | ||||
|   </tbody> | ||||
| </table> | ||||
|  | ||||
| <script> | ||||
| $(document).ready(function() { | ||||
|   $('#data-table').dataTable({ | ||||
|     "processing": true, | ||||
|     "stateSave": true, | ||||
|     "pageLength": 25, | ||||
|     "language": { | ||||
|       "search": 'Filter records: ' | ||||
|     }, | ||||
|     "columnDefs": [ { | ||||
|         "targets": [ 2, 3 ], | ||||
|         "orderable": false, | ||||
|         "searchable": false | ||||
|       } ] | ||||
|   } ); | ||||
| } ); | ||||
| </script> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user