tabs

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectTabCmd

func SelectTabCmd(tab int) tea.Cmd

SelectTabCmd is a bubbletea command that selects the tab at the given index.

Types

type ActiveTabMsg

type ActiveTabMsg int

ActiveTabMsg is a message that contains the index of the current active tab.

type SelectTabMsg

type SelectTabMsg int

SelectTabMsg is a message that contains the index of the tab to select.

type Tabs

type Tabs struct {
	common.Common

	TabSeparator lipgloss.Style
	TabInactive  lipgloss.Style
	TabActive    lipgloss.Style
	TabDot       lipgloss.Style
	UseDot       bool
	// contains filtered or unexported fields
}

Tabs is bubbletea component that displays a list of tabs.

func New

func New(c common.Common, tabs []string) *Tabs

New creates a new Tabs component.

func (*Tabs) Init

func (t *Tabs) Init() tea.Cmd

Init implements tea.Model.

func (*Tabs) Update

func (t *Tabs) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*Tabs) View

func (t *Tabs) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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