selection

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 6 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) Help added in v0.2.0

func (b *Bubble) Help() []common.HelpEntry

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