1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-28 13:48:51 +08:00
termdash/widgets/table/content_test.go

54 lines
691 B
Go
Raw Normal View History

2019-03-09 00:44:48 -05:00
package table
func Example_DisplayDataOnly() {
rows := []*Row{
NewRow(
NewCell("hello"),
NewCell("world"),
),
NewRow(
NewCell("hello"),
NewCell("world"),
),
}
_, err := NewContent(Columns(3), rows)
if err != nil {
panic(err)
}
data := [][]string{}
myRows := []*Row{}
for _, dataRow := range data {
cells := []*Cell{}
for _, dataCol := range dataRow {
cells = append(cells, NewCell(dataCol))
}
myRows = append(myRows, NewRow(cells...))
}
}
func Example_ColorInheritance() {
}
func Example_ColAndRowSpan() {
}
func Example_TextTrimmingAndWrapping() {
}
func Example_AddRow() {
}
func Example_DeleteRow() {
}
func Example_Callback() {
}