obj

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accessor

type Accessor interface {
	ID() int
	Data() interface{}
}

type Collection

type Collection interface {
	Element
	Elements() []Element
	AddElements(...Element) Collection
	Focusable() bool
	Focused() bool
	Focus() Collection
	FocusFromStart() Collection
	FocusFromEnd() Collection
	Blur() Collection
	FocusNext() (Collection, tea.Cmd)
	FocusPrev() (Collection, tea.Cmd)
	GetElementByID(int) Accessor
}

type Element

type Element interface {
	View(bool) string
	Update(tea.Msg) (Element, tea.Cmd)
}

type ElementWithID

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

func NewElementWithID

func NewElementWithID(id int) ElementWithID

func (ElementWithID) ID

func (e ElementWithID) ID() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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