Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <script>
  2.  
  3. var Tabulator = require('tabulator-tables');
  4. $("#download_csv").click(function () {
  5. var table = new Tabulator("#extable", {
  6.  
  7. });
  8.  
  9. table.download("csv", "data.csv");
  10. });
  11.  
  12. </script>
  13.  
  14. var extable = new Tabulator("#extable", {
  15. pagination: "local",
  16. paginationSize: 15,
  17. layout: layoutPlan,
  18. resizableColumns: true,
  19. tooltips: true,
  20. selectable: true,
  21. tooltipsHeader: true,
  22. groupToggleElement: "header",
  23. groupBy: t_groupBy,
  24. initialSort: t_initialSort,
  25. groupClosedShowCalcs: true,
  26. columns: t_columns,
  27. paginationSizeSelector:[15, 25, 50, 100]
  28.  
  29. });
  30.  
  31. extable.setData(report_results);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement