For any page
Add a Download CSV button that saves a table on the page as a spreadsheet file.
Each example below is the actual published output of the Public table CSV export widget, pointed at the sample tables further down this page by their CSS IDs. Press a button to download the table.
Default settings, with the CSS ID of the price table below: a “Download CSV” button that saves it as table.csv.
Price list
A sample table with a quoted note, a comma and a cell that starts with = (saved with an apostrophe so spreadsheets do not run it).
| Item | Price | Notes |
|---|---|---|
| Enamel mug | £12.00 | Dishwasher safe, “white” |
| Copper kettle | £48.50 | Sold out |
| Linen apron | £22.00 | =Back in May |
Opening hours
A second sample table for the tab-separated example.
| Day | Opens | Closes |
|---|---|---|
| Monday to Friday | 9:00 | 17:30 |
| Saturday | 10:00 | 16:00 |
| Sunday | Closed |