ui

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDescription

func CreateDescription(title, value string) *tview.Flex

func CreateHeader

func CreateHeader(primary, secondary string) *tview.Flex

func CreateLayout

func CreateLayout(body *tview.Flex) (layout *tview.Flex)

func CreateTable

func CreateTable(
	header []string,
	rows [][]string,
	selectedFunc func(row, column int),
) *tview.Table

Types

type Tab

type Tab struct {
	Title   string
	Content tview.Primitive
}

type TabPage

type TabPage struct {
	Page *tview.Flex
	Next func() (currentTab int)
	Prev func() (currentTab int)
}

func CreateTabPage

func CreateTabPage(tabs []*Tab, selected int) *TabPage

Jump to

Keyboard shortcuts

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