header

package
v3.68.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Header represents a header component.

func New

func New(c common.Common, text string) *Header

New creates a new header component.

func (*Header) Init

func (h *Header) Init() tea.Cmd

Init implements tea.Model.

func (*Header) SetSize

func (h *Header) SetSize(width, height int)

SetSize implements common.Component.

func (*Header) Update

func (h *Header) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*Header) View

func (h *Header) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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