Documentation ¶ Index ¶ Variables type Model func NewModel(tabNames []string) Model func (m *Model) NextTab() int func (m *Model) PrevTab() int func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) func (m Model) View(ctx context.ProgramContext) string 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 Source Files ¶ View all Source files styles.gotabs.go Click to show internal directories. Click to hide internal directories.