diff --git a/_examples/table.go b/_examples/table.go index af74957..eb2fa2b 100644 --- a/_examples/table.go +++ b/_examples/table.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a MIT license that can // be found in the LICENSE file. +//go:build ignore // +build ignore package main @@ -61,6 +62,21 @@ func main() { ui.Render(table3) + borderlessTable := widgets.NewTable() + borderlessTable.Rows = [][]string{ + []string{"header1", "header2", "header3"}, + []string{"Foundations", "Go-lang is so cool", "Im working on Ruby"}, + []string{"2016", "11", "11"}, + } + borderlessTable.TextStyle = ui.NewStyle(ui.ColorWhite) + borderlessTable.TextAlignment = ui.AlignCenter + borderlessTable.SetRect(0, 30, 60, 35) + borderlessTable.Border = false + borderlessTable.RowSeparator = false + borderlessTable.ColSeparator = false + + ui.Render(borderlessTable) + uiEvents := ui.PollEvents() for { e := <-uiEvents