dataentry

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.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 DataEntry

type DataEntry struct {
	common.Common
	common.SimpleHelp
	Input *huh.Input
	Form  *huh.Form
}

func New

func New(c common.Common, field string, validation func(input string) error) *DataEntry

func (*DataEntry) GetHeight

func (m *DataEntry) GetHeight() int

func (*DataEntry) Init

func (m *DataEntry) Init() tea.Cmd

func (*DataEntry) SetSize

func (m *DataEntry) SetSize(w, h int)

func (*DataEntry) SetValue

func (m *DataEntry) SetValue(val string)

func (*DataEntry) Update

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

func (*DataEntry) View

func (m *DataEntry) View() string

Jump to

Keyboard shortcuts

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