field

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

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

Field contains a string value

func New

func New(s string) *Field

New creates a Field

func (*Field) Backspace

func (m *Field) Backspace()

func (*Field) Cursor

func (m *Field) Cursor() int

func (*Field) End

func (m *Field) End()

func (*Field) Home

func (m *Field) Home()

func (*Field) Insert

func (m *Field) Insert(r rune)

func (*Field) InsertNL added in v0.1.5

func (m *Field) InsertNL()

func (*Field) Left

func (m *Field) Left()

func (*Field) Right

func (m *Field) Right()

func (*Field) Set

func (m *Field) Set(value string)

func (*Field) String

func (m *Field) String() string

func (*Field) Strings added in v0.1.5

func (m *Field) Strings() []string

type FieldWithFocus

type FieldWithFocus struct {
	*Field
	*FocusState
}

func WithFocus

func WithFocus(field *Field) *FieldWithFocus

type FocusState

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

func (*FocusState) Blur

func (m *FocusState) Blur()

func (*FocusState) Focus

func (m *FocusState) Focus()

func (*FocusState) Focused

func (m *FocusState) Focused() bool

Jump to

Keyboard shortcuts

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