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

How to set an alignment for a column? #70

Open
RazrFalcon opened this issue Jan 11, 2018 · 1 comment
Open

How to set an alignment for a column? #70

RazrFalcon opened this issue Jan 11, 2018 · 1 comment

Comments

@RazrFalcon
Copy link

AFAIU, you can set align only on a per-cell basis, but can I set an alignment for a whole column?

@phsym
Copy link
Owner

phsym commented Jan 18, 2018

Well, it's not currently possible, but if you have any idea in mind, feel free to make a proposal.
For now you can only set alignment during row creation, or by mutably iterating over the cells in the column in order to set alignment.

Maybe some kind of method on struct Table like fn set_column_alignment(usize, Alignment) which updates all the cells would do the job

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