We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug No way to set border style for title.
To Reproduce
package main import ( "os" "github.com/jedib0t/go-pretty/v6/text" "github.com/jedib0t/go-pretty/v6/table" ) func main() { t := table.NewWriter() t.SetOutputMirror(os.Stdout) t.AppendHeader(table.Row{"#", "First Name", "Last Name", "Salary"}) t.AppendRows([]table.Row{ {1, "Arya", "Stark", 3000}, {20, "Jon", "Snow", 2000, "You know nothing, Jon Snow!"}, }) t.AppendSeparator() t.AppendRow([]interface{}{300, "Tyrion", "Lannister", 5000}) t.AppendFooter(table.Row{"", "", "Total", 10000}) t.SetTitle("title test") t.Style().Title.Colors = text.Colors{text.Faint} t.Style().Color = table.ColorOptions{ Header: text.Colors{text.Faint}, Row: text.Colors{text.Faint}, RowAlternate: text.Colors{text.Faint}, Footer: text.Colors{text.Faint}, } t.Render() }
Expected behavior I expect to be able to color the top portion of the border.
Screenshots
Software (please complete the following information):
Linux 5.18.0-2-amd64 Debian 5.18.5-1 (2022-06-16) x86_64 GNU/Linux
go version go1.18 linux/amd64
The text was updated successfully, but these errors were encountered:
Ack. This solution for this is part of the solution for #218. Will leave this open just for tracking.
Sorry, something went wrong.
table: colorize title borders; fixes #234
a4fe48e
711c5ea
Hey @alajmo ... the other feature may not see the light of the day. So I've delivered a fix for your issue and cut a tag for your use: https://github.com/jedib0t/go-pretty/releases/tag/v6.4.2
Thank you, works wonderfully :)
jedib0t
No branches or pull requests
Describe the bug
No way to set border style for title.
To Reproduce
Expected behavior
I expect to be able to color the top portion of the border.
Screenshots
Software (please complete the following information):
Linux 5.18.0-2-amd64 Debian 5.18.5-1 (2022-06-16) x86_64 GNU/Linux
go version go1.18 linux/amd64
The text was updated successfully, but these errors were encountered: