Documentation
¶
Index ¶
- type Model
- func (m Model) AppendItem(item string) Model
- func (m Model) AtBottom() bool
- func (m Model) GotoBottom() Model
- func (m Model) GotoTop() Model
- func (m Model) ItemCount() int
- func (m Model) SetItems(items []string) Model
- func (m Model) SetSize(width, height int) Model
- func (m Model) SetStyle(style lipgloss.Style) Model
- 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 Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is a virtualized scroll list that only renders visible items.
func (Model) AppendItem ¶
AppendItem adds one item to the end. If followBottom is true, the view auto-scrolls to show the new content.
Click to show internal directories.
Click to hide internal directories.