Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.61 KB | None | 0 0
  1. var dataSet = [
  2. ['IOS-LSLSLS','PRODUCT-NAME','CATEGORY','MANUFACTURER','COUNTRY','RETAILER1, RETAILER2'],
  3. ['ANDROID-LSLSLS','PRODUCT-NAME2','CATEGORY2','MANUFACTURER2','COUNTRY2','RETAILER31, RETAILER32']]";
  4.  
  5.  
  6. oTable = $('#devicesDatatableId').dataTable( {
  7. "stateSave": true,
  8. "bStateSave": true,
  9. "data": dataSet,
  10. "sScrollY": "auto",
  11. "bJQueryUI": true,
  12. "sPaginationType": "full_numbers",
  13. "bPaginate": true,
  14. "bLengthChange": true,
  15. "bFilter": true,
  16. "aaSorting": [[ 0, "asc" ]],
  17. "aoColumnDefs": [
  18. { "bSortable": false, "asSorting": [ "asc" ], "sWidth": "15%", "aTargets": [ 0 ] },
  19. { "sWidth": "20%", "aTargets": [ 1 ] },
  20. { "sWidth": "10%", "aTargets": [ 2 ] },
  21. { "sWidth": "20%", "aTargets": [ 3 ] },
  22. { "sWidth": "15%", "aTargets": [ 4 ] },
  23. { "sWidth": "20%", "aTargets": [ 5 ] }
  24. ],
  25. "bSort": true,
  26. "bInfo": true,
  27. "bAutoWidth": true,
  28. "bSortCellsTop": true,
  29. "sDom": 'tlpi<"clear">',
  30.  
  31. });
  32.  
  33. <table cellpadding="0" cellspacing="0" border="0" class="display normaltable" id="devicesDatatableId">
  34. <thead>
  35. <tr>
  36. <th >Model</th>
  37. <th >Product name</th>
  38. <th >Category:</th>
  39. <th >Manufacturer:</th>
  40. <th >Country(ies):</th>
  41. <th >Retailer(s):</th>
  42. </tr>
  43. <tr class="thefilters">
  44. <td ><input name="" size="" maxlength="" id="" value="" type="text"/></td>
  45. <td ><input name="" size="" maxlength="" id="" value="" type="text"/></td>
  46. <td ><input name="" size="" maxlength="" id="" value="" type="text"/></td>
  47. <td ><input name="" size="" maxlength="" id="" value="" type="text"/></td>
  48. <td ><input name="" size="" maxlength="" id="" value="" type="text"/></td>
  49. <td ><input name="" size="" maxlength="" id="" value="" type="text"/></td>
  50. </tr>
  51. </thead>
  52. <tfoot>
  53. <tr>
  54. <th>Model</th>
  55. <th>Product name</th>
  56. <th>Category:</th>
  57. <th>Manufacturer:</th>
  58. <th>Country(ies):</th>
  59. <th>Retailer(s):</th>
  60. </tr>
  61. </tfoot>
  62. <tbody/>
  63. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement