selector

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(id int, options []string, multiselect bool) obj.Element

Types

type Selector

type Selector struct {
	obj.ElementWithID
	// contains filtered or unexported fields
}

func (Selector) Cursor

func (m Selector) Cursor() int

func (Selector) Data

func (m Selector) Data() interface{}

func (Selector) Disable

func (s Selector) Disable(opt string) Selector

func (Selector) Enable

func (s Selector) Enable(opt string) Selector

func (Selector) Next

func (s Selector) Next() Selector

func (Selector) Prev

func (s Selector) Prev() Selector

func (Selector) Selected

func (m Selector) Selected() []string

func (Selector) Toggle

func (s Selector) Toggle() Selector

func (Selector) Update

func (s Selector) Update(msg tea.Msg) (obj.Element, tea.Cmd)

func (Selector) View

func (s Selector) View(focused bool) string

Jump to

Keyboard shortcuts

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