Guest User

Untitled

a guest
Dec 15th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Example Vue + DataTables</title>
  5. <!-- I happened to be using the bootstrap styling w/ DataTables. You may not need this. -->
  6. <link rel="stylesheet" href="/path/to/datatables/DataTables-1.10.16/css/dataTables.bootstrap4.min.css">
  7. </head>
  8. <body>
  9. <div id="example-page">
  10.  
  11. <div v-show="isFirstDataLoaded" style="display:none">
  12. <table id="personsTable" class="table table-striped table-bordered table-responsive table-sm" cellspacing="0" width="100%">
  13. <thead>
  14. <tr>
  15. <th>id</th>
  16. <th>name</th>
  17. <th>address</th>
  18. <th>zip</th>
  19. </tr>
  20. </thead>
  21. <tfoot>
  22. <tr>
  23. <th>id</th>
  24. <th>name</th>
  25. <th>address</th>
  26. <th>zip</th>
  27. </tr>
  28. </tfoot>
  29. <tbody>
  30. <tr v-for="p in persons" :id="'row-'+p.personId">
  31. <td v-text="p.personId"></td>
  32. <td v-text="p.name"></td>
  33. <td v-text="p.address"></td>
  34. <td v-text="p.zip"></td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39.  
  40. </div><!-- example-page -->
  41.  
  42. <script type="text/javascript" src="/path/to/datatables/DataTables-1.10.16/js/jquery.dataTables.min.js"></script>
  43. <script type="text/javascript" src="/path/to/datatables/DataTables-1.10.16/js/dataTables.bootstrap4.min.js"></script>
  44. <script type="text/javascript" src="/path/to/vue-datatables-example.js"></script>
  45.  
  46. </body>
  47. </html>
Add Comment
Please, Sign In to add comment