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

Auto width #12

Open
vencho-mdp opened this issue Oct 8, 2022 · 1 comment
Open

Auto width #12

vencho-mdp opened this issue Oct 8, 2022 · 1 comment

Comments

@vencho-mdp
Copy link

Hi! Firstly, thanks for this library!

One cool feature that could be added is the ability to adjust the cell width to the text. I'd be willing to do it if you could explain a little bit about where I could start.

@khoa-nv
Copy link

khoa-nv commented Nov 16, 2022

You can set the col width like this

var wscols = [
    {wch:6},
    {wch:7},
    {wch:10},
    {wch:20}
];

ws['!cols'] = wscols;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants