widgets

package
v0.0.0-...-e270a8f Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Column

func Column(items []Item) *tview.Flex
func Dropdown(
	options []string,
	defaultOption int,
	selected func(text string, index int),
) *tview.DropDown

func InputField

func InputField(placeholder string) *tview.InputField
func Modal(title string, items []Item) *tview.Flex

func Row

func Row(items []Item) *tview.Flex

func Text

func Text(t string) *tview.TextView

func TextArea

func TextArea(title string) *tview.TextArea

func TextButton

func TextButton(title string, backgroundColor tcell.Color, border bool, onPressed func()) *tview.Button

Types

type Item

type Item struct {
	Item       tview.Primitive
	Proportion int
}

Jump to

Keyboard shortcuts

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