selector

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 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, callback tea.Msg) container.SimpleContainer

Types

type Selector

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

func (Selector) Cursor

func (m Selector) Cursor() int

func (Selector) Data

func (m Selector) Data() interface{}

implementing Accessor

func (Selector) Disable

func (s Selector) Disable(opt string) Selector

special

func (Selector) Disabled

func (s Selector) Disabled(opt string) bool

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

implementing Element

Jump to

Keyboard shortcuts

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