Documentation ¶
Index ¶
- type HeaderModel
- func (m HeaderModel) Busy() bool
- func (m HeaderModel) Init() tea.Cmd
- func (m *HeaderModel) Resize(width int)
- func (m *HeaderModel) SetBreadcrumbs(breadcrumbs string)
- func (m *HeaderModel) SetBusy()
- func (m *HeaderModel) SetFree()
- func (m HeaderModel) Update(msg tea.Msg) (HeaderModel, tea.Cmd)
- func (m HeaderModel) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderModel ¶
type HeaderModel struct {
// contains filtered or unexported fields
}
HeaderModel is the model for a header. The header displays state information such as breadcrumbs for the selected book.
func InitialModel ¶
func InitialModel(name string, title string) HeaderModel
InitialModel builds the model.
func (HeaderModel) Busy ¶
func (m HeaderModel) Busy() bool
Busy returns whether the writer is busy or not.
func (*HeaderModel) Resize ¶
func (m *HeaderModel) Resize(width int)
Resize changes the size of the header.
func (*HeaderModel) SetBreadcrumbs ¶
func (m *HeaderModel) SetBreadcrumbs(breadcrumbs string)
SetBreadcrumbs sets the bread crumbs displayed in the header.
func (*HeaderModel) SetBusy ¶
func (m *HeaderModel) SetBusy()
SetBusy denotes that the writer is busy.
func (*HeaderModel) SetFree ¶
func (m *HeaderModel) SetFree()
SetBusy denotes that the writer is free.
func (HeaderModel) Update ¶
func (m HeaderModel) Update(msg tea.Msg) (HeaderModel, tea.Cmd)
Update handles a message.
Click to show internal directories.
Click to hide internal directories.