components

package
v0.0.0-...-e344175 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(
	text string,
	buttonLabels []string,
	buttonActions map[string]func(),
	onDismiss func(),
) tview.Primitive

func BodyWithOptions

func BodyWithOptions(
	instructions string,
	options []string,
	optionLabels map[string]string,
	onSelect func(option string),
) (body *tview.Flex, buttons map[string]*tview.Button)

func Checkbox

func Checkbox(label string, checked bool, changed func(bool)) tview.FormItem

func ConfirmAlert

func ConfirmAlert(
	text string,
	onConfirm func(),
	onDismiss func(),
) tview.Primitive

func DescriptionSidbar

func DescriptionSidbar(
	description string,
) (func(string), tview.Primitive)
func Footer(App *tview.Application) *tview.Flex

func Form

func Form() *tview.Form
func Header(version string) tview.Primitive
func Nav(selectedItem string) tview.Primitive
func NavText(text string, selected bool) *tview.TextView

func PageLeftNav

func PageLeftNav(options []string, selectedNav string) *tview.Flex

func VerticalLine

func VerticalLine(color tcell.Color) *tview.Box

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳