dropdown

package
v1.0.64 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item interface {
	list.Item
	Summary() string
}

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(items []Item, delegate list.ItemDelegate, listWidth, listHeight int) Model

func (*Model) Blur

func (m *Model) Blur()

func (*Model) Collapse

func (m *Model) Collapse()

func (*Model) Expand

func (m *Model) Expand()

func (*Model) Focus

func (m *Model) Focus()

func (Model) HighlightedIndex

func (m Model) HighlightedIndex() int

func (*Model) InsertItem

func (m *Model) InsertItem(index int, item Item) tea.Cmd

func (Model) IsExpanded added in v1.0.33

func (m Model) IsExpanded() bool

func (*Model) Items added in v1.0.33

func (m *Model) Items() []list.Item

func (*Model) RemoveItem

func (m *Model) RemoveItem(index int)

func (*Model) Select

func (m *Model) Select(index int)

func (Model) SelectedIndex

func (m Model) SelectedIndex() int

func (*Model) SelectedItem

func (m *Model) SelectedItem() Item

func (*Model) SetDelegate

func (m *Model) SetDelegate(d list.ItemDelegate)

func (*Model) SetItems

func (m *Model) SetItems(items []Item) tea.Cmd

func (*Model) SetShowFilter

func (m *Model) SetShowFilter(v bool)

func (*Model) SetShowHelp

func (m *Model) SetShowHelp(v bool)

func (*Model) SetShowPagination

func (m *Model) SetShowPagination(v bool)

func (*Model) SetShowStatusBar

func (m *Model) SetShowStatusBar(v bool)

func (*Model) SetShowTitle

func (m *Model) SetShowTitle(v bool)

func (*Model) SetSyles

func (m *Model) SetSyles(styles Styles)

func (Model) ShowFilter

func (m Model) ShowFilter() bool

func (Model) ShowHelp

func (m Model) ShowHelp() bool

func (Model) ShowPagination

func (m Model) ShowPagination() bool

func (Model) ShowStatusBar

func (m Model) ShowStatusBar() bool

func (Model) ShowTitle

func (m Model) ShowTitle() bool

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Styles

type Styles struct {
	Summary                   lipgloss.Style
	FocusedSummary            lipgloss.Style
	ExpandedAndFocusedSummary lipgloss.Style
	Chrome                    lipgloss.Style
	FocusedChrome             lipgloss.Style
}

Jump to

Keyboard shortcuts

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