Documentation
¶
Overview ¶
Package remotelist provides a list that loads items asynchronously.
Index ¶
- type Item
- type LoadResult
- type Model
- func (m *Model) Error() error
- func (m *Model) HasError() bool
- func (m *Model) Init() tea.Cmd
- func (m *Model) InitWithLoader(loadFunc tea.Cmd) tea.Cmd
- func (m *Model) IsLoaded() bool
- func (m *Model) IsLoading() bool
- func (m *Model) KeyMap() list.KeyMap
- func (m *Model) Retry() tea.Cmd
- func (m *Model) SelectedItem() list.Item
- func (m *Model) SetHeight(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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadResult ¶
LoadResult is sent when async loading completes.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is a list that loads items asynchronously.
func (*Model) InitWithLoader ¶
InitWithLoader starts loading with the given load function.
func (*Model) SelectedItem ¶
SelectedItem returns the currently selected item.
Click to show internal directories.
Click to hide internal directories.