textinput

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

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

func NewContent

func NewContent(title string, placeholder string) Content

func (Content) Init

func (c Content) Init() tea.Cmd

func (Content) KeyMap

func (c Content) KeyMap() help.KeyMap

func (Content) SetCursorToStart added in v0.4.0

func (c Content) SetCursorToStart() Content

func (Content) SetSize

func (c Content) SetSize(width, height int) container.Content

func (Content) SetValue added in v0.4.0

func (c Content) SetValue(value string) Content

func (Content) Text

func (c Content) Text() string

func (Content) Title

func (c Content) Title() string

func (Content) Update

func (c Content) Update(msg tea.Msg) (container.Content, tea.Cmd)

func (Content) UpdateFocus

func (c Content) UpdateFocus(isFocused bool) (container.Content, tea.Cmd)

func (Content) View

func (c Content) View() string

Jump to

Keyboard shortcuts

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