tui_list

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp(title string, options []OptionEntity, callbacks []CallbackFunc) tea.Model

Types

type CallbackFunc

type CallbackFunc struct {
	Keys             []string
	ShortDescription string
	FullDescription  string
	Callback         func(selectedOption OptionEntity) []OptionEntity
}

type OptionEntity

type OptionEntity interface {
	Entity() interface{}
	Title() string
	Description() string
}

func NewOption

func NewOption(entity OptionEntity) OptionEntity

Jump to

Keyboard shortcuts

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