textinputs

package
v3.82.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 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
	RedactInput bool
}

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) SetFooter added in v3.81.6

func (m Model) SetFooter(foot string) Model

func (Model) SetHeader added in v3.81.6

func (m Model) SetHeader(head string) Model

func (Model) SetSkip

func (m Model) SetSkip(skip bool) Model

func (Model) SetSubmitMsg added in v3.81.6

func (m Model) SetSubmitMsg(msg string) 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