Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2024 Changes in this version + func GetPager() string + func IsDumbTerminal() bool + func IsNotTTY() bool + func PagerOut(out string) error + type CopyFunc func(row, column int, data interface{}) + type CopyKeyFunc func(row, column int, data interface{}) + type MoveFunc func(row, col int) ... + type MoveHandlerFunc func(state string) error + type Preview struct + func NewPreview(opts ...PreviewOption) *Preview + func (pv *Preview) Paint(pd []PreviewData) error + type PreviewData struct + Contents func(string) interface{} + Key string + Menu string + type PreviewOption func(*Preview) + func WithContentTableOpts(opts ...TableOption) PreviewOption + func WithInitialText(text string) PreviewOption + func WithPreviewFooterText(text string) PreviewOption + func WithSidebarSelectedFunc(fn SelectedFunc) PreviewOption + type RefreshFunc func() + type RefreshTableStateFunc func(row, col int, val string) + type Screen struct + func NewScreen() *Screen + func (s *Screen) Paint(root tview.Primitive) error + type SelectedFunc func(row, column int, data interface{}) + type Table struct + func NewTable(opts ...TableOption) *Table + func (t *Table) Paint(data TableData) error + type TableData [][]string + func (td TableData) Get(r, c int) string + func (td TableData) GetIndex(key string) int + func (td TableData) Update(r, c int, val string) + type TableOption func(*Table) + func WithCopyFunc(fn CopyFunc) TableOption + func WithCopyKeyFunc(fn CopyKeyFunc) TableOption + func WithFixedColumns(cols uint) TableOption + func WithMoveFunc(fn MoveFunc) TableOption + func WithRefreshFunc(fn RefreshFunc) TableOption + func WithSelectedFunc(fn SelectedFunc) TableOption + func WithTableFooterText(text string) TableOption + func WithTableHelpText(text string) TableOption + func WithTableStyle(style TableStyle) TableOption + func WithViewModeFunc(fn ViewModeFunc) TableOption + type TableStyle struct + SelectionBackground string + SelectionForeground string + SelectionTextIsBold bool + type Text struct + func NewText() *Text + func (tv *Text) Render(td TextData) error + type TextData string + type ViewModeFunc func(row, col int, data interface{}) (func() interface{}, func(data interface{}) (string, error))