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

[FEATURE] AUTO RESIZE COLUMN WIDTH BASED ON TEXT #662

Open
iamrishan opened this issue Oct 16, 2023 · 2 comments
Open

[FEATURE] AUTO RESIZE COLUMN WIDTH BASED ON TEXT #662

iamrishan opened this issue Oct 16, 2023 · 2 comments

Comments

@iamrishan
Copy link

I need to auto-resize my A1 and B1 columns based on the text width.

in Google Sheets, we can do this by right-clicking on the column and selecting - Resize Column - Fit to Data ✔

image
image

I looked into updateDimensionProperties on docs and it is hard to understand for a beginner.

@theoephraim
Copy link
Owner

Looks like there is a different request specifically for this - https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/request#autoresizedimensionsrequest

Shouldn't be too hard to implement, but I'm not sure when I'll be able to get to it. Open to pull requests though!

@iamrishan iamrishan changed the title [HOW] AUTO RESIZE COLUMN WIDTH BASED ON TEXT [FEATURE] AUTO RESIZE COLUMN WIDTH BASED ON TEXT Oct 18, 2023
@lexuzieel
Copy link

Hello @theoephraim! I see this issue is still open and the auto resize method is not implemented in the could. Is it possible to call API directly using this package? Couldn't find any references to this in the docs

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

3 participants