ui

package
v0.0.0-...-efb3873 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCustomListView

func CreateCustomListView(properties ListViewBoxProperties) *tview.List

func CreateCustomShortCutsView

func CreateCustomShortCutsView(App *tview.Application, properties CustomShortCutProperties) *tview.Table

func CreateCustomTableView

func CreateCustomTableView(properties CustomTableViewProperties) *tview.Table

func CreateModal

func CreateModal(properties ModalProperties, currentFlex *tview.Flex) *tview.Modal

Types

type Column

type Column struct {
	Name  string
	Width int
}

type CustomShortCut

type CustomShortCut struct {
	Name        string
	Description string
	Rune        rune
	Key         tcell.Key
	Handle      func(event *tcell.EventKey) *tcell.EventKey
}

type CustomShortCutProperties

type CustomShortCutProperties struct {
	Shortcuts []CustomShortCut
}

func (CustomShortCutProperties) Len

func (c CustomShortCutProperties) Len() int

func (CustomShortCutProperties) Less

func (c CustomShortCutProperties) Less(i, j int) bool

func (CustomShortCutProperties) Swap

func (c CustomShortCutProperties) Swap(i, j int)

type CustomTableViewProperties

type CustomTableViewProperties struct {
	Title   string
	Columns []Column
	Rows    [][]string
	Handler func(selectedProfileName string)
}

type ListViewBoxProperties

type ListViewBoxProperties struct {
	Title   string
	Options []string
	Handler func(selectedOption string)
}

type ModalChoice

type ModalChoice struct {
	Name    string
	Handler func(currentFlex *tview.Flex)
}

type ModalProperties

type ModalProperties struct {
	Title       string
	LeftChoice  ModalChoice
	RightChoice ModalChoice
}

Jump to

Keyboard shortcuts

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