I want to export my data (which reside on the Page) into excel (xlsx) format. I have gone through couple of available libraries but none of them actually worked or helped me to achieve my requirement. Below are the required things which I want to do while export:
Header column (First row of the exported xlsx file) should be bold which clearly state it as header.
Every column should be defined which the type of data like date column, string column, number column.
I can set the width of the columns, when opening the exported xlsx file (optional thing, if it is achievable)
I have gone through various JS based framework but most of them are providing support for xls file not for xlsx. But there are some which provides xlsx support like js-xlsx, but there is no good documentation available to do that or how to achieve the excel export functionality with my requirements.
I have also looked into one more xlsx export framework (exceljs) which is very good with the documentation, but I doubt it is not available outside of nodejs, its a plugin of nodejs thus require nods js to run. Thus its not purely client side or on page side.
Can you please help me to achieve that with java-script.
Thanks