selector

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 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 Model

type Model struct {
	component.Component
	// contains filtered or unexported fields
}

func New

func New(options []string, multiselect bool) Model

func (Model) Cursor

func (m Model) Cursor() int

func (*Model) Disable

func (m *Model) Disable(opt string)

func (*Model) Enable

func (m *Model) Enable(opt string)

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Next

func (m *Model) Next()

func (*Model) Prev

func (m *Model) Prev()

func (Model) Selected

func (m Model) Selected() []string

func (*Model) Toggle

func (m *Model) Toggle()

func (Model) Update

func (m Model) Update(msg tea.Msg) (component.Updater, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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