tabs

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

README

tabs

Documentation

Index

Constants

View Source
const (
	Height = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Width  uint
	Height uint
	// TODO: add/move styles
	TitleStyle lipgloss.Style
	// contains filtered or unexported fields
}

func New

func New(totalTabs uint) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetTabModels

func (m *Model) SetTabModels(models []tea.Model)

func (*Model) SetTabTitles

func (m *Model) SetTabTitles(titles []string)

func (*Model) SetTitleStyle

func (m *Model) SetTitleStyle(titleStyle lipgloss.Style)

func (*Model) SetWidth

func (m *Model) SetWidth(width uint)

func (*Model) TabModels

func (m *Model) TabModels() []tea.Model

func (*Model) TabTitles

func (m *Model) TabTitles() []string

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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