1.4.3 • Published 5 months ago

csvexporter v1.4.3

Weekly downloads
36
License
-
Repository
github
Last release
5 months ago

csvExport

Export your HTML tables to CSV format.

Doc

  • Installation

Simply import JQuery & csvExport into your HTML.

<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://unpkg.com/csvexporter@1.4.0/csvExport.min.js"></script>	
  • How to use Select your table(s) with a JQuery selector.
$('table').csvExport();
  • Options
{
    escapeContent:true, //Escapes illegal chars
    title:'Exported_Table.csv', //File name
    beforeStart : function(table) {}, //Triggers before anything is called
    onStringReady : function(currentString) {} //Triggers when your CSV string is ready
}
  • Example
$('table').csvExport({
  title: "Table_Test.csv",
  beforeStart: function(t){
    console.log(t);
  },
  onStringReady: function(s){
    console.log(s);
  }
});

Authors

1.4.3

5 months ago

1.4.2

4 years ago

1.4.0

6 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago