ui

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func AddTableConfigData

func AddTableConfigData(table *TableInfo, startRow int, data [][]string, color tcell.Color)

func AddTableData

func AddTableData(table *tview.Table, startRow int, data [][]string, alignment []int, expansions []int, color tcell.Color, selectable bool)

func SetColumnStyle

func SetColumnStyle(table *tview.Table, col int, rowStart int, style tcell.Style)

func TruncTableRows

func TruncTableRows(table *tview.Table, maxRows int)

Types

type TableInfo

type TableInfo struct {
	Table      *tview.Table
	Alignment  []int
	Expansions []int
	Selectable bool
}

Contains information for configuring a tview table

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL