Documentation ¶
Index ¶
- type Model
- func (m Model) GetHeight() int
- func (m Model) GetHorizontalFrameSize() int
- func (m Model) GetIsActive() bool
- func (m Model) GetWidth() int
- func (m Model) GetYOffset() int
- func (m *Model) GotoBottom()
- func (m *Model) GotoTop()
- func (m *Model) LineDown(lines int)
- func (m *Model) LineUp(lines int)
- func (m *Model) SetActive(isActive bool)
- func (m *Model) SetContent(content string)
- func (m *Model) SetSize(width, height int)
- func (m *Model) ShowAlternateBorder(show bool)
- func (m *Model) ShowSpinner(show bool)
- 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 { Viewport viewport.Model Style lipgloss.Style IsActive bool Borderless bool AlternateBorder bool ShowLoading bool ActiveBorderColor lipgloss.AdaptiveColor InactiveBorderColor lipgloss.AdaptiveColor Spinner spinner.Model }
Model is a struct to represent the properties of a pane.
func NewModel ¶
func NewModel(isActive, borderless bool, activeBorderColor, inactiveBorderColor lipgloss.AdaptiveColor) Model
NewModel creates an instance of a pane.
func (Model) GetHorizontalFrameSize ¶ added in v0.3.1
GetHorizontalFrameSize returns the horizontal frame size of the pane.
func (Model) GetIsActive ¶ added in v0.3.1
GetIsActive returns the active state of the pane.
func (Model) GetYOffset ¶ added in v0.1.0
GetYOffset returns the y offset of the pane.
func (*Model) SetContent ¶
SetContent sets the content of the pane.
func (*Model) SetSize ¶
SetSize sets the size of the pane and its viewport, useful when resizing the terminal.
func (*Model) ShowAlternateBorder ¶ added in v0.4.0
SetActiveBorderColors sets the active border colors.
func (*Model) ShowSpinner ¶ added in v0.8.0
ShowSpinner determines wether to show the spinner or not.
Click to show internal directories.
Click to hide internal directories.