converts a Javascript data array to a CSV string
| data |
| string | a CSV string |
var text = webix.csv.stringify([[a,b],[c,d]]); //"a,b\n,c,d"
The delimiter is an object with the following properties:
var delimiter = {
rows: "\n", // the rows delimiter
cols: "\t" // the columns delimiter
}
You can change delimiters globally by setting the webix.csv.delimiter.rows and webix.csv.delimiter.cols properties.
webix.csv.delimiter.rows = "\b";
webix.csv.delimiter.cols = "\v";
Back to top