Documentation ¶
Index ¶
- type Model
- func (m *Model) GetHeight() int
- func (m *Model) GetSize() (int, int)
- 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) SetActiveBorderColor(color lipgloss.TerminalColor)
- func (m *Model) SetContent(content string)
- func (m *Model) SetHeight(height int)
- func (m *Model) SetMaxHeight(height int)
- func (m *Model) SetMaxWidth(width int)
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetWidth(width int)
- 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 struct represents property of a panel.
func NewModel ¶
func NewModel(isActive, isPadded bool, border lipgloss.Border, activeBorderColor, inactiveBorderColor lipgloss.TerminalColor) *Model
NewModel creates a new instance of a panel.
func (*Model) GetYOffset ¶
GetYOffset returns the y offset of the panel.
func (*Model) SetActiveBorderColor ¶
func (m *Model) SetActiveBorderColor(color lipgloss.TerminalColor)
SetActiveBorderColors sets the active border colors.
func (*Model) SetContent ¶
SetContent sets the content of the panel.
func (*Model) SetMaxHeight ¶
SetMaxxHeight sets the maximum height of the panel.
func (*Model) SetMaxWidth ¶
SetMaxWidth sets the maximum width of the panel.
Click to show internal directories.
Click to hide internal directories.