html icon indicating copy to clipboard operation
html copied to clipboard

HTML table from CSV

Open esdnm opened this issue 1 year ago • 1 comments

Can we have a way to make tables from CSV file?

Like an attribute to table element or some built in methods in JS

esdnm avatar Sep 12 '22 05:09 esdnm

@esdnm I suggest creating a web-component this can be done with custom element like <csv-table src="./path/to/csv/file.csv" />, using javascript to fetch the file, then parse the csv (using a client-side library), then creating the necessary table elements via javascript.

reggi avatar Sep 12 '22 17:09 reggi

that's an easy answer, but think about how nice it would be if it was built-in. Or like JSON, parser a CSV parser API having to HTMLTable method

esdnm avatar Apr 07 '23 07:04 esdnm