Documentation
¶
Index ¶
- type BoxLayout
- type SidebarLayout
- func (l *SidebarLayout) Init() tea.Cmd
- func (l *SidebarLayout) SetFooterHeight(height int)
- func (l *SidebarLayout) SetSidebarVisible(visible bool)
- func (l *SidebarLayout) SetSidebarWidth(width int)
- func (l *SidebarLayout) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (l *SidebarLayout) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoxLayout ¶
type BoxLayout struct {
// contains filtered or unexported fields
}
BoxLayout is a simple layout that renders a single child model with a specified style. It implements the DimensionModel interface so it can be a convenient way to wrap a model with a style.
func NewBoxLayout ¶
func NewBoxLayout(style lipgloss.Style, content tui.DimensionModel) *BoxLayout
type SidebarLayout ¶
type SidebarLayout struct {
// contains filtered or unexported fields
}
SidebarLayout is a layout that renders a sidebar, content, and footer. The sidebar can be toggled on and off, and the width of the sidebar and height of the footer can be adjusted.
All the child models are expected to implement the DimensionModel interface, and should therefore handle their own sizing.
func NewSidebarLayout ¶
func NewSidebarLayout(sidebar, content, footer tui.DimensionModel) *SidebarLayout
func (*SidebarLayout) Init ¶
func (l *SidebarLayout) Init() tea.Cmd
func (*SidebarLayout) SetFooterHeight ¶
func (l *SidebarLayout) SetFooterHeight(height int)
func (*SidebarLayout) SetSidebarVisible ¶
func (l *SidebarLayout) SetSidebarVisible(visible bool)
func (*SidebarLayout) SetSidebarWidth ¶
func (l *SidebarLayout) SetSidebarWidth(width int)
func (*SidebarLayout) View ¶
func (l *SidebarLayout) View() string
Click to show internal directories.
Click to hide internal directories.