Versions in this module Expand all Collapse all v0 v0.10.3 Feb 7, 2022 Changes in this version + var NewModel = New + type DefaultDelegate struct + FullHelpFunc func() [][]key.Binding + RenderFunc func(w io.Writer, m Model, index int, item Item) + ShortHelpFunc func() []key.Binding + ShowDescription bool + Styles DefaultItemStyles + UpdateFunc func(tea.Msg, *Model) tea.Cmd + func NewDefaultDelegate() DefaultDelegate + func (d *DefaultDelegate) SetSpacing(i int) + func (d DefaultDelegate) FullHelp() [][]key.Binding + func (d DefaultDelegate) Height() int + func (d DefaultDelegate) Render(w io.Writer, m Model, index int, item Item) + func (d DefaultDelegate) ShortHelp() []key.Binding + func (d DefaultDelegate) Spacing() int + func (d DefaultDelegate) Update(msg tea.Msg, m *Model) tea.Cmd + type DefaultItem interface + Description func() string + Title func() string + type DefaultItemStyles struct + DimmedDesc lipgloss.Style + DimmedTitle lipgloss.Style + FilterMatch lipgloss.Style + NormalDesc lipgloss.Style + NormalTitle lipgloss.Style + SelectedDesc lipgloss.Style + SelectedTitle lipgloss.Style + func NewDefaultItemStyles() (s DefaultItemStyles) + type FilterMatchesMsg []filteredItem + type FilterState int + const FilterApplied + const Filtering + const Unfiltered + func (f FilterState) String() string + type Item interface + FilterValue func() string + type ItemDelegate interface + Height func() int + Render func(w io.Writer, m Model, index int, item Item) + Spacing func() int + Update func(msg tea.Msg, m *Model) tea.Cmd + type KeyMap struct + AcceptWhileFiltering key.Binding + CancelWhileFiltering key.Binding + ClearFilter key.Binding + CloseFullHelp key.Binding + CursorDown key.Binding + CursorUp key.Binding + Filter key.Binding + ForceQuit key.Binding + GoToEnd key.Binding + GoToStart key.Binding + NextPage key.Binding + PrevPage key.Binding + Quit key.Binding + ShowFullHelp key.Binding + func DefaultKeyMap() KeyMap + type Model struct + AdditionalFullHelpKeys func() []key.Binding + AdditionalShortHelpKeys func() []key.Binding + FilterInput textinput.Model + Help help.Model + KeyMap KeyMap + Paginator paginator.Model + StatusMessageLifetime time.Duration + Styles Styles + Title string + func New(items []Item, delegate ItemDelegate, width, height int) Model + func (m *Model) CursorDown() + func (m *Model) CursorUp() + func (m *Model) DisableQuitKeybindings() + func (m *Model) InsertItem(index int, item Item) tea.Cmd + func (m *Model) NewStatusMessage(s string) tea.Cmd + func (m *Model) RemoveItem(index int) + func (m *Model) ResetFilter() + func (m *Model) ResetSelected() + func (m *Model) Select(index int) + func (m *Model) SetDelegate(d ItemDelegate) + func (m *Model) SetFilteringEnabled(v bool) + func (m *Model) SetHeight(v int) + func (m *Model) SetItem(index int, item Item) tea.Cmd + func (m *Model) SetItems(i []Item) tea.Cmd + func (m *Model) SetShowFilter(v bool) + func (m *Model) SetShowHelp(v bool) + func (m *Model) SetShowPagination(v bool) + func (m *Model) SetShowStatusBar(v bool) + func (m *Model) SetShowTitle(v bool) + func (m *Model) SetSize(width, height int) + func (m *Model) SetSpinner(spinner spinner.Spinner) + func (m *Model) SetWidth(v int) + func (m *Model) ShowPagination() bool + func (m *Model) StartSpinner() tea.Cmd + func (m *Model) StopSpinner() + func (m *Model) ToggleSpinner() tea.Cmd + func (m Model) Cursor() int + func (m Model) FilterState() FilterState + func (m Model) FilterValue() string + func (m Model) FilteringEnabled() bool + func (m Model) FullHelp() [][]key.Binding + func (m Model) Height() int + func (m Model) Index() int + func (m Model) Items() []Item + func (m Model) MatchesForItem(index int) []int + func (m Model) NextPage() + func (m Model) PrevPage() + func (m Model) SelectedItem() Item + func (m Model) SettingFilter() bool + func (m Model) ShortHelp() []key.Binding + func (m Model) ShowFilter() bool + func (m Model) ShowHelp() bool + func (m Model) ShowStatusBar() bool + func (m Model) ShowTitle() bool + func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) + func (m Model) View() string + func (m Model) VisibleItems() []Item + func (m Model) Width() int + type Styles struct + ActivePaginationDot lipgloss.Style + ArabicPagination lipgloss.Style + DefaultFilterCharacterMatch lipgloss.Style + DividerDot lipgloss.Style + FilterCursor lipgloss.Style + FilterPrompt lipgloss.Style + HelpStyle lipgloss.Style + InactivePaginationDot lipgloss.Style + NoItems lipgloss.Style + PaginationStyle lipgloss.Style + Spinner lipgloss.Style + StatusBar lipgloss.Style + StatusBarActiveFilter lipgloss.Style + StatusBarFilterCount lipgloss.Style + StatusEmpty lipgloss.Style + Title lipgloss.Style + TitleBar lipgloss.Style + func DefaultStyles() (s Styles)