tabs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 6 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 {
	Tabs         []Tab
	CurrentTabId int
	// contains filtered or unexported fields
}

func NewModel

func NewModel(ctx *context.ProgramContext, tabs []Tab) 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() string

type Tab

type Tab struct {
	Name string
	Icon string
}

Jump to

Keyboard shortcuts

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