0

I am exporting CSV file in Reactjs where I need to create dropdown in generated CSV file

I tried excel.js and shell.js as well as csvlink download

<CSVLink data={data}>Download me</CSVLink>;

it showing normal csv with key value pair

0

1 Answer 1

0

CSV file doesn't allow to use anything like dropdown. If you want a dropdown you need to use spreadsheet format.

Spreadsheets allows to have data validation:

Dropdown in google sheet

Dropdown in Excel

Here is code sample from Python: How to add a dropdown list to google sheet using Google Sheets API python

Sign up to request clarification or add additional context in comments.

2 Comments

is it possible in spredsheet to add dropdown
@shweta spreadsheets allows to have data validation. I'm not sure if you can code it that way with any library (possible can) but: support.google.com/docs/answer/… techrepublic.com/blog/microsoft-office/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.