mirror of https://github.com/gizak/termui.git
Correct table example
This commit is contained in:
parent
40027c172a
commit
e03bfffa49
|
@ -131,6 +131,7 @@ Click image to see the corresponding demo codes.
|
||||||
[<img src="./_example/barchart.png" alt="barchart" type="image/png" width="45%">](https://github.com/gizak/termui/blob/master/_example/barchart.go)
|
[<img src="./_example/barchart.png" alt="barchart" type="image/png" width="45%">](https://github.com/gizak/termui/blob/master/_example/barchart.go)
|
||||||
[<img src="./_example/mbarchart.png" alt="barchart" type="image/png" width="45%">](https://github.com/gizak/termui/blob/master/_example/mbarchart.go)
|
[<img src="./_example/mbarchart.png" alt="barchart" type="image/png" width="45%">](https://github.com/gizak/termui/blob/master/_example/mbarchart.go)
|
||||||
[<img src="./_example/sparklines.png" alt="sparklines" type="image/png" width="45%">](https://github.com/gizak/termui/blob/master/_example/sparklines.go)
|
[<img src="./_example/sparklines.png" alt="sparklines" type="image/png" width="45%">](https://github.com/gizak/termui/blob/master/_example/sparklines.go)
|
||||||
|
[<img src="./_example/table.png" alt="table" type="image/png" width="45%">](https://github.com/gizak/termui/blob/master/_example/table.go)
|
||||||
|
|
||||||
## GoDoc
|
## GoDoc
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ func main() {
|
||||||
table.FgColor = termui.ColorWhite
|
table.FgColor = termui.ColorWhite
|
||||||
table.BgColor = termui.ColorDefault
|
table.BgColor = termui.ColorDefault
|
||||||
table.TextAlign = termui.AlignCenter
|
table.TextAlign = termui.AlignCenter
|
||||||
table.Seperator = false
|
table.Separator = false
|
||||||
table.Analysis()
|
table.Analysis()
|
||||||
table.SetSize()
|
table.SetSize()
|
||||||
table.BgColors[2] = termui.ColorRed
|
table.BgColors[2] = termui.ColorRed
|
||||||
|
|
Loading…
Reference in New Issue