tabs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TabsHeight = tabsBorderHeight + tabsContentHeight
)

Functions

This section is empty.

Types

type Model

type Model struct {
	TabNames     []string
	CurrentTabId int
}

func NewModel

func NewModel(tabNames []string) Model

func (*Model) NextTab

func (m *Model) NextTab() int

func (*Model) PrevTab

func (m *Model) PrevTab() int

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View(ctx context.ProgramContext) string

Jump to

Keyboard shortcuts

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