Documentation
¶
Index ¶
- type Item
- type Model
- func (m Model) GetItem(text string) (list.Item, bool)
- func (m Model) Index() int
- func (m Model) Init() tea.Cmd
- func (m *Model) IsEmpty() bool
- func (m Model) Items() []list.Item
- func (m Model) SelectedItem() list.Item
- func (m *Model) SetHeight(height int)
- func (m *Model) SetIndex(index int)
- func (m *Model) SetItems(items []list.Item)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
Item is an item in the list
func (Item) Description ¶
Description returns the description of the item
func (Item) FilterValue ¶
FilterValue returns the title of the item
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model contains state of the list
func New ¶
func New(colors colorscheme.Colorscheme, title string, height int, showDesc bool) Model
New creates a new list
func (Model) SelectedItem ¶
SelectedItem returns the selected item
Click to show internal directories.
Click to hide internal directories.