selection

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveMsg

type ActiveMsg struct {
	Name  string
	Index int
}

type Bubble

type Bubble struct {
	Items        []string
	SelectedItem int
	// contains filtered or unexported fields
}

func NewBubble

func NewBubble(items []string, styles *style.Styles) *Bubble

func (*Bubble) Init

func (b *Bubble) Init() tea.Cmd

func (*Bubble) Update

func (b *Bubble) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Bubble) View

func (b Bubble) View() string

type SelectedMsg

type SelectedMsg struct {
	Name  string
	Index int
}

Jump to

Keyboard shortcuts

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