input

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTextinputModel

func NewTextinputModel(label, def, placeholder string) textinput.Model

Types

type Input

type Input struct {
	obj.ElementWithID
	obj.ElementWithCallback
	// contains filtered or unexported fields
}

func New

func New(id int, label, def, placeholder string, inputtype utils.InputType, callback tea.Msg) Input

func (Input) Data

func (ti Input) Data() interface{}

implementing Accessor

func (Input) Set added in v1.3.3

func (ti Input) Set(inp string) Input

special

func (Input) Update

func (ti Input) Update(msg tea.Msg) (obj.Element, tea.Cmd)

implementing Element

func (Input) View

func (ti Input) View(focused bool) string

Jump to

Keyboard shortcuts

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