Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zenoo/jquery-csvexport

Export your HTML tables to CSV format.
https://github.com/zenoo/jquery-csvexport

csv csv-export jquery jquery-plugin

Last synced: about 2 months ago
JSON representation

Export your HTML tables to CSV format.

Awesome Lists containing this project

README

        

# csvExport

Export your HTML tables to CSV format.

### Doc

* **Installation**

Simply import JQuery & csvExport into your HTML.
```


```
* **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

* **Zenoo** - *Initial work* - [Zenoo.fr](http://zenoo.fr)