Documentation ¶
Index ¶
- Constants
- type FooterModel
- func (m *FooterModel) Delete() tea.Cmd
- func (m FooterModel) Init() tea.Cmd
- func (m FooterModel) InputMode() bool
- func (m FooterModel) InputName() string
- func (m *FooterModel) Insert(runes []rune) tea.Cmd
- func (m *FooterModel) MoveLeft()
- func (m *FooterModel) MoveRight()
- func (m *FooterModel) Resize(width int)
- func (m *FooterModel) SetFilters(filters []string)
- func (m *FooterModel) StartInputMode(prompt string, text string, maxChars int)
- func (m *FooterModel) StopInputMode()
- func (m FooterModel) Text() string
- func (m FooterModel) Update(msg tea.Msg) (FooterModel, tea.Cmd)
- func (m FooterModel) View() string
Constants ¶
const HelpInfoWidth = 7 // width of the help info in the footer
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FooterModel ¶
type FooterModel struct {
// contains filtered or unexported fields
}
FooterModel is the model for a header. The footer can collect input, and displays informationa about the apps state.
func (*FooterModel) Delete ¶
func (m *FooterModel) Delete() tea.Cmd
Delete deletes the rune in front of the cursor.
func (FooterModel) InputMode ¶
func (m FooterModel) InputMode() bool
InputMode returns whether the footer is accepting input or not.
func (FooterModel) InputName ¶
func (m FooterModel) InputName() string
InputName is the name of the underlying input.
func (*FooterModel) Insert ¶
func (m *FooterModel) Insert(runes []rune) tea.Cmd
Insert inserts runes in front of the cursor.
func (*FooterModel) MoveLeft ¶
func (m *FooterModel) MoveLeft()
MoveLeft moves the cursor the left once space.
func (*FooterModel) MoveRight ¶
func (m *FooterModel) MoveRight()
MoveRight moves the cursor to right once space.
func (*FooterModel) Resize ¶
func (m *FooterModel) Resize(width int)
Resize changes the size of the footer.
func (*FooterModel) SetFilters ¶
func (m *FooterModel) SetFilters(filters []string)
SetFilters sets the curently applied filters.
func (*FooterModel) StartInputMode ¶
func (m *FooterModel) StartInputMode(prompt string, text string, maxChars int)
StartInputMode switches the footer into accepting input.
func (*FooterModel) StopInputMode ¶
func (m *FooterModel) StopInputMode()
StopInputMode switches the footer out of accepting input.
func (FooterModel) Text ¶
func (m FooterModel) Text() string
Text returns the text in the footers input.
func (FooterModel) Update ¶
func (m FooterModel) Update(msg tea.Msg) (FooterModel, tea.Cmd)
Update handles a message.