textinputs

package
v3.63.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input added in v3.60.0

type Input struct {
	Value     string
	IsDefault bool
}

type InputConfig

type InputConfig struct {
	Label       string
	Key         string
	Help        string
	Required    bool
	Placeholder string
}

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(config []InputConfig) Model

func (Model) GetInputs

func (m Model) GetInputs() map[string]Input

func (Model) GetLabel

func (m Model) GetLabel(c InputConfig) string

func (Model) GetLabels

func (m Model) GetLabels() map[string]string

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) SetSkip

func (m Model) SetSkip(skip bool) Model

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type SelectNextMsg

type SelectNextMsg int

SelectNextMsg used for emitting events when the 'Next' button is selected.

type SelectSkipMsg

type SelectSkipMsg int

SelectSkipMsg used for emitting events when the 'Skip' button is selected.

Jump to

Keyboard shortcuts

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