selector

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Selector

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

func New

func New(id int, options []string, multiselect bool, view_limit int, callback tea.Msg) Selector

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) SetViewLimit added in v1.5.0

func (m Selector) SetViewLimit(limit int) Selector

func (Selector) Toggle

func (s Selector) Toggle() Selector

func (Selector) ToggleSpecific added in v1.3.3

func (s Selector) ToggleSpecific(opt string) 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