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

Add ability to ellipsize text overflowing in table cell #2

Open
h1nk opened this issue Oct 16, 2020 · 3 comments
Open

Add ability to ellipsize text overflowing in table cell #2

h1nk opened this issue Oct 16, 2020 · 3 comments

Comments

@h1nk
Copy link

h1nk commented Oct 16, 2020

It would be quite nice to have the ability to ellipsize text that overflows the table cells width

@swfiua
Copy link
Owner

swfiua commented Oct 24, 2020

It is supposed to shrink the font until the text fits, but I seem to recall there are subtleties with the row labels.

Maybe if there was a minimum font size option, it could then ellipsize text that does not fit.

Do you have an example I could work with?

@swfiua
Copy link
Owner

swfiua commented Oct 25, 2020

I've been on a bit of a diversion of trying to figure out tables more generally: everybody has a table.

I will likely start a whole new table object.

I guess if there was an option to supply maximum cell width in characters, it could run a shortening algorithm as necessary, then feed the results into the existing font guessing code.

@swfiua
Copy link
Owner

swfiua commented Dec 5, 2020

4f4ddb1

is a step in the right direction.

I really just want a thing that I can pass a list of dictionaries, or dictionary of lists and maybe a column or row index

Turn that into something that feeds into the existing table, randomly shortening as we go.

I actually have use for a random string shortener.

It should do lines as well as rows.

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