wizard

package
v0.0.0-...-045c0c7 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NextPageMsg ChangePageMsg = iota
	PrevPageMsg

	FocusMsg PageFocusMsg = iota // FocusMsg is sent to a page's Model when the page gets focus
)

Variables

This section is empty.

Functions

func NextPage

func NextPage() tea.Cmd

func PrevPage

func PrevPage() tea.Cmd

Types

type ChangePageMsg

type ChangePageMsg int

type Page

type Page struct {
	Name  string
	Model tea.Model
}

type PageFocusMsg

type PageFocusMsg int

type Wizard

type Wizard struct {
	Pages         []Page
	SelectedStyle lipgloss.Style
	FocusedStyle  lipgloss.Style
	BlurredStyle  lipgloss.Style
	// contains filtered or unexported fields
}

func (Wizard) Init

func (w Wizard) Init() tea.Cmd

func (Wizard) Update

func (w Wizard) Update(m tea.Msg) (tea.Model, tea.Cmd)

func (Wizard) View

func (w Wizard) View() string

Jump to

Keyboard shortcuts

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