charmbracelet / bubbles

TUI components for Bubble Tea 🫧

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: add alignment to table cells

siddhantac opened this issue · comments

Is your feature request related to a problem? Please describe.
I would like to align text in my table, preferably per column but a table-level alignment also works.

Describe the solution you'd like
It would be nice if we could align the text in a table. It could be per-column or the entire row, depending on complexity.

Describe alternatives you've considered
Tried to set table.Cell.AlignRight(true) but it didn't work.

Additional context
I believe this piece of code left aligns all text in a table.