footer

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToggleFooterCmd

func ToggleFooterCmd() tea.Msg

ToggleFooterCmd sends a ToggleFooterMsg to show/hide the help footer.

Types

type Footer struct {
	// contains filtered or unexported fields
}

Footer is a Bubble Tea model that displays help and other info.

func New

func New(c common.Common, keymap help.KeyMap) *Footer

New creates a new Footer.

func (*Footer) FullHelp

func (f *Footer) FullHelp() [][]key.Binding

FullHelp returns the full help key bindings.

func (*Footer) Height

func (f *Footer) Height() int

Height returns the height of the footer.

func (*Footer) Init

func (f *Footer) Init() tea.Cmd

Init implements tea.Model.

func (*Footer) SetShowAll

func (f *Footer) SetShowAll(show bool)

SetShowAll sets whether the full help is shown.

func (*Footer) SetSize

func (f *Footer) SetSize(width, height int)

SetSize implements common.Component.

func (*Footer) ShortHelp

func (f *Footer) ShortHelp() []key.Binding

ShortHelp returns the short help key bindings.

func (*Footer) ShowAll

func (f *Footer) ShowAll() bool

ShowAll returns whether the full help is shown.

func (*Footer) Update

func (f *Footer) Update(_ tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*Footer) View

func (f *Footer) View() string

View implements tea.Model.

type ToggleFooterMsg

type ToggleFooterMsg struct{}

ToggleFooterMsg is a message sent to show/hide the footer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL