-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to apply text alignment to all header columns? #340
Comments
Is the list of columns dynamic or the number of columns fixed? |
Hey @hellt ... with the linked PR that has been merged, you should be able to set up the default alignment you want on the rows/headers/footers. Sample usage is in the description of the PR. Note that Column-configs will override these values. Use the "main" branch code and let me know if this works, and I'll cut a tag for you. |
thanks for a quick turnover, @jedib0t |
I love my table header row to have center-aligned text, like this
The problem is, that it seems setting the text alignment of the header columns is only possible with
which needs to know either the column names, or indexes. I compile the table dynamically, so I might now know the names of the rows ahead of time.
At the same time, it seems there is no
table.AddColumnConfigs()
that would not overwrite the slice of column configs. How could I dynamically add the column config iterating over the slice oftable.Row
?The text was updated successfully, but these errors were encountered: