diff --git a/examples/table/main.go b/examples/table/main.go index f0dc6c8..1cb9d04 100644 --- a/examples/table/main.go +++ b/examples/table/main.go @@ -4,6 +4,7 @@ import "fmt" import "git.tebibyte.media/sashakoshka/tomo" import "git.tebibyte.media/sashakoshka/tomo/layouts" import "git.tebibyte.media/sashakoshka/tomo/elements" +import "git.tebibyte.media/sashakoshka/tomo/textdraw" import "git.tebibyte.media/sashakoshka/tomo/elements/containers" import _ "git.tebibyte.media/sashakoshka/tomo/backends/all" @@ -26,6 +27,7 @@ func run () { label := elements.NewLabel ( fmt.Sprintf("%d, %d", row, column), false) + label.SetAlign(textdraw.AlignCenter) table.Set(row, column, label) } index ++