Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeView ¶
Types ¶
type MsgViewChange ¶
send to change the current state; Msgs are optional messages to forward to the destination view
type MsgViewEnter ¶
type MsgViewEnter View
sent to a state when it is entered, with the view we're leaving
type ViewModel ¶
type ViewModel interface {
Init() tea.Cmd
Update(tea.Msg) (ViewModel, tea.Cmd)
// The view's header
Header(width int) string
// The view's main content, which is given given height to render into
Content(width, height int, errors string) string
Footer(width int) string
}
An analogue to tea.Model with separate header, content, and footer sections
Click to show internal directories.
Click to hide internal directories.