Documentation ¶
Index ¶
- type Viewport
- func (v *Viewport) GotoBottom()
- func (v *Viewport) GotoTop()
- func (v *Viewport) HalfViewDown()
- func (v *Viewport) HalfViewUp()
- func (v *Viewport) Init() tea.Cmd
- func (v *Viewport) LineDown(n int) []string
- func (v *Viewport) LineUp(n int) []string
- func (v *Viewport) ScrollPercent() float64
- func (v *Viewport) SetContent(content string)
- func (v *Viewport) SetSize(width, height int)
- func (v *Viewport) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (v *Viewport) View() string
- func (v *Viewport) ViewDown() []string
- func (v *Viewport) ViewUp() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Viewport ¶
Viewport represents a viewport component.
func (*Viewport) GotoBottom ¶
func (v *Viewport) GotoBottom()
GotoBottom moves the viewport to the bottom of the log.
func (*Viewport) GotoTop ¶
func (v *Viewport) GotoTop()
GotoTop moves the viewport to the top of the log.
func (*Viewport) HalfViewDown ¶
func (v *Viewport) HalfViewDown()
HalfViewDown moves the viewport down by half the viewport height.
func (*Viewport) HalfViewUp ¶
func (v *Viewport) HalfViewUp()
HalfViewUp moves the viewport up by half the viewport height.
func (*Viewport) ScrollPercent ¶
ScrollPercent returns the viewport's scroll percentage.
func (*Viewport) SetContent ¶
SetContent sets the viewport's content.
Click to show internal directories.
Click to hide internal directories.