navigation

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Focusable

type Focusable interface {
	Blur()
	Focus() tea.Cmd
}

type FormField

type FormField interface {
	tea.Model
	Focusable
	Value() string
}
type NavigableItem interface {
	GetName() string
	GetChildren() []NavigableItem
	IsDisabled() bool
	GetID() string
}
type NavigationItem struct {
	Items    []NavigableItem
	Selected Selected
}
type NavigationStack struct {
	Stack []NavigationItem
}

func NewNavigationStack

func NewNavigationStack(initialItems []NavigableItem) NavigationStack
func (ns *NavigationStack) CurrentItem() *NavigationItem
func (ns *NavigationStack) Pop()
func (ns *NavigationStack) Push(item NavigableItem)

type Selected

type Selected uint

func (*Selected) Next

func (s *Selected) Next(max int)

func (*Selected) Prev

func (s *Selected) Prev()

Jump to

Keyboard shortcuts

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