views

package
v0.0.0-...-2a17e48 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 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 View

type View interface {
	// Initialize initializes the view.
	Initialize(backButtonText string, sysConfig *configuration.SystemConfig, cfg *configuration.Config, app *tview.Application, nextPage, previousPage, quit, refreshTitle func()) error

	// HandleInput handles custom input.
	HandleInput(event *tcell.EventKey) *tcell.EventKey

	// Reset resets the page, undoing any user input.
	Reset() error

	// OnShow gets called when the view is shown to the user
	OnShow()

	// Name returns the friendly name of the view.
	Name() string

	// Title returns the title of the view.
	Title() string

	// Primitive returns the primary primitive to be rendered for the view.
	Primitive() tview.Primitive
}

View is the interface for different "pages" in the attended installer.

Jump to

Keyboard shortcuts

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