Documentation
¶
Index ¶
- Variables
- type Model
- func (m *Model) Blur()
- func (m *Model) CanGrow() bool
- func (m *Model) Focus() tea.Cmd
- func (m *Model) Focused() bool
- func (m *Model) GetHeight() int
- func (m *Model) Init() tea.Cmd
- func (m *Model) SetContent(s string)
- func (t *Model) SetHeight(height int)
- func (t *Model) SetSize(w, h int)
- func (m *Model) SetWidth(width int)
- func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Model) View() string
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultWidth = 80 DefaultHeight = 25 )
DefaultWidth and DefaultHeight define the default dimensions for the viewport.
Functions ¶
This section is empty.
Types ¶
type Model ¶
Model wraps the Bubble Tea viewport model with additional functionality and styling options provided by the Sugarfoam framework.
func (*Model) SetContent ¶
Click to show internal directories.
Click to hide internal directories.