Documentation
¶
Overview ¶
Package list provides a themed list component.
Index ¶
- Constants
- type Item
- type KeyMap
- type Model
- func (m *Model) FilteringEnabled() bool
- func (m *Model) Index() int
- func (m *Model) Init() tea.Cmd
- func (m *Model) KeyMap() KeyMap
- func (m *Model) SelectedItem() Item
- func (m *Model) SetFilteringEnabled(enabled bool)
- func (m *Model) SetHeight(height int)
- func (m *Model) SetItems(items []Item) tea.Cmd
- func (m *Model) SetShowPagination(show bool)
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetWidth(width int)
- func (m *Model) ShortHelp() []key.Binding
- func (m *Model) Update(msg tea.Msg) tea.Cmd
- func (m *Model) View() string
Constants ¶
View Source
const MaxHeight = 11
MaxHeight is the default maximum height for lists.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model wraps bubbles list with consistent theming.
func (*Model) FilteringEnabled ¶
FilteringEnabled returns whether filtering is enabled.
func (*Model) SelectedItem ¶
SelectedItem returns the currently selected item.
func (*Model) SetFilteringEnabled ¶
SetFilteringEnabled controls whether filtering is enabled.
func (*Model) SetShowPagination ¶
SetShowPagination controls pagination visibility.
Click to show internal directories.
Click to hide internal directories.