🏠 back to Observable

Inputs.table download option as a visible button?

Hi,
in Inputs.table there is the option to download the current records.
To do it, you must know it, and click on the three dots on the left of the table.

Is there a way to insert a button that calls that action and download as CSV the current records?

Thank you

image

3 Likes

Of course! Anything written in vanilla Javascript can be deployed to Observable. In this case, just create a button and associate the action you want on click. Here’s an example built on top of the last suggestion I sent you:

3 Likes

Wow, thank you very much

1 Like

I have inserted in my notebook, but it does not work Contributi ai Comuni per investimenti di rigenerazione urbana anni 2021-2026 (PNRR) / Andrea Borruso / Observable

What’s wrong?

Solved, I must use a viewof!

Thank you

1 Like