input

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(id int, label, def, placeholder string, inputtype utils.InputType) obj.Element

func NewTextinputModel

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

Types

type TextInput

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

func (TextInput) Data

func (ti TextInput) Data() interface{}

func (TextInput) Update

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

func (TextInput) View

func (ti TextInput) View(focused bool) string

Jump to

Keyboard shortcuts

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