Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sheet_to_html doesn't honor hidden flag on row or column #1198

Open
sweeneyb opened this issue Jul 28, 2018 · 0 comments
Open

sheet_to_html doesn't honor hidden flag on row or column #1198

sweeneyb opened this issue Jul 28, 2018 · 0 comments
Labels

Comments

@sweeneyb
Copy link

I have a use case where I want to present a subset of columns to a user. The easiest way would be to augment my in-memory sheet with something like:

sheet['!cols'] = [];
  sheet['!cols'][1] = {
    hidden: true
  };

It looks like the sheet_to_csv honors that via an option, but the support just isn't there in the sheet_to_html. It seems like an easy enough feature to add, but I'd be grateful for confirmation this is the correct approach and the feature doesn't exist before diving in.

I think it's as simple as making a check at https://github.com/SheetJS/js-xlsx/blob/master/xlsx.js#L18140 against the options array and ws['!cols'][C].hidden, right?

@reviewher reviewher added the HTML label Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants