Documentation
¶
Overview ¶
Package listview provides shared list navigation and scrolling logic for list-based UI components.
Index ¶
- type State
- func (s *State) Count() int
- func (s *State) Cursor() int
- func (s *State) Focused() bool
- func (s *State) GoToBottom()
- func (s *State) GoToTop()
- func (s *State) Height() int
- func (s *State) MoveDown()
- func (s *State) MoveUp()
- func (s *State) Offset() int
- func (s *State) PageDown()
- func (s *State) PageUp()
- func (s *State) Scroll(delta int)
- func (s *State) SetCount(count int)
- func (s *State) SetCursor(pos int)
- func (s *State) SetFocused(focused bool)
- func (s *State) SetSize(width, height int)
- func (s *State) VisibleRows() int
- func (s *State) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State holds the navigation state for a list view.
func (*State) GoToBottom ¶
func (s *State) GoToBottom()
GoToBottom moves the cursor to the last item.
func (*State) SetFocused ¶
SetFocused sets the focus state.
func (*State) VisibleRows ¶
VisibleRows returns the number of visible rows.
Click to show internal directories.
Click to hide internal directories.