textinput

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoComplete

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

func NewAutoComplete

func NewAutoComplete(vx *vaxis.Vaxis, complete func(string) []string) *AutoComplete

func (*AutoComplete) Draw

func (a *AutoComplete) Draw(win vaxis.Window)

func (*AutoComplete) Update

func (a *AutoComplete) Update(msg vaxis.Event)
type MenuComplete struct {
	// contains filtered or unexported fields
}

func NewMenuComplete

func NewMenuComplete(complete func(string) []string) *MenuComplete
func (m *MenuComplete) Draw(win vaxis.Window)
func (m *MenuComplete) Update(msg vaxis.Event)

type Model

type Model struct {
	Content vaxis.Style
	Prompt  vaxis.Style
	// contains filtered or unexported fields
}

func New

func New() *Model

func (*Model) Draw

func (m *Model) Draw(win vaxis.Window)

func (*Model) SetContent

func (m *Model) SetContent(s string) *Model

func (*Model) SetPrompt

func (m *Model) SetPrompt(s string) *Model

func (*Model) String

func (m *Model) String() string

func (*Model) Update

func (m *Model) Update(msg vaxis.Event)

Jump to

Keyboard shortcuts

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