Skip to content

Commit

Permalink
added data-export
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Jul 16, 2020
1 parent 52babdd commit d8b67da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,13 @@ <h2>DataTable</h2>
<!-- Bootstrap Table stylesheets and code -->
<script src="https://unpkg.com/@popperjs/core@2/dist/umd/popper.min.js"></script>
<script src="https://unpkg.com/tippy.js@6/dist/tippy-bundle.umd.js"></script>
<!-- <script src="https://unpkg.com/tableexport.jquery.plugin/tableExport.min.js"></script> -->
<!-- <script src="https://unpkg.com/[email protected]/dist/extensions/export/bootstrap-table-export.min.js"></script> -->
<link href="https://s3-us-west-2.amazonaws.com/colors-css/2.2.0/colors.min.css" rel="stylesheet">
<link href="https://unpkg.com/[email protected]/dist/bootstrap-table.min.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/bootstrap-table.min.js"></script>
<link href="https://unpkg.com/[email protected]/dist/bootstrap-table.min.css" rel="stylesheet">
<script src="https://unpkg.com/tableexport.jquery.plugin/tableExport.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/bootstrap-table.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/extensions/export/bootstrap-table-export.min.js"></script>


<style type="text/css">
#mapid { position: relative; }
.notloading { display: none; }
Expand Down
2 changes: 2 additions & 0 deletions templates/primary_table.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!doctype html>
<table
id="table_primary"
data-show-export="true"
data-export-types="['excel', 'csv']"
data-toggle="table"
data-pagination="true"
data-page-size="5"
Expand Down

0 comments on commit d8b67da

Please sign in to comment.