mgcrea / node-xlsx

NodeJS excel file parser & builder
Other
2.96k stars 274 forks source link

Implementing Cascading Dropdowns with node-xlsx #196

Open mathmartins2 opened 11 months ago

mathmartins2 commented 11 months ago

I'm currently working on a project where I'm utilizing the node-xlsx library to generate and manipulate Excel files. I have a specific use case where I need to create a form within an Excel sheet that has cascading dropdowns – meaning, the options available in one dropdown should depend on the user’s selection in another dropdown.

For instance, if I have a dropdown in Cell A1 with options like "Fruits", "Vehicles", and "Electronics", and another dropdown in Cell B1, I would like the options in B1 to dynamically update based on the selection in A1. So if the user selects "Fruits" in A1, B1 should only show options related to fruits, like "Apple" and "Banana".

I have been trying to figure out how to implement this functionality using node-xlsx, but I am not sure if the library supports this directly or if there's a recommended workaround.

Here are my specific questions:

Does node-xlsx support the creation of cascading dropdowns directly? If so, could you provide an example or point me to the relevant documentation? If node-xlsx does not support this functionality directly, do you have any recommendations for how I might implement this feature, perhaps using a combination of Excel formulas or any other programming tools?

I appreciate any guidance or suggestions you can provide!