tabs

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

func NewModel

func NewModel(ctx *context.ProgramContext) Model

func (Model) Active added in v0.1.0

func (m Model) Active() int

func (Model) ActiveSectionIndex added in v0.1.0

func (m Model) ActiveSectionIndex() int

func (Model) HasSectionTabs added in v0.1.0

func (m Model) HasSectionTabs() bool

func (*Model) NextSection added in v0.1.0

func (m *Model) NextSection() bool

func (*Model) PrevSection added in v0.1.0

func (m *Model) PrevSection() bool

func (Model) SectionTabAtX added in v0.1.0

func (m Model) SectionTabAtX(x int) int

func (*Model) SetActive

func (m *Model) SetActive(active int)

func (*Model) SetActiveSection added in v0.1.0

func (m *Model) SetActiveSection(idx int)

func (*Model) SetSectionTabs added in v0.1.0

func (m *Model) SetSectionTabs(tabs []string)

func (*Model) SetTitles

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

func (Model) View

func (m Model) View() string

func (Model) ViewTabAtX added in v0.1.0

func (m Model) ViewTabAtX(x int) int

Jump to

Keyboard shortcuts

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