itemeditor

package
v0.0.0-...-881f335 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IterateStructFields

func IterateStructFields(structInput interface{}) []string

Types

type ItemCollectionEditor

type ItemCollectionEditor struct {
	Width  int // The width is for the whole control, giving the tree view the left half (so half this value)
	Height int

	Tree *teatree.Tree
	// contains filtered or unexported fields
}

func NewEditor

func NewEditor() *ItemCollectionEditor

func (*ItemCollectionEditor) Init

func (ice *ItemCollectionEditor) Init() tea.Cmd

func (*ItemCollectionEditor) Update

func (ice *ItemCollectionEditor) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ItemCollectionEditor) View

func (ice *ItemCollectionEditor) View() string

type ItemEntry

type ItemEntry struct {
	Data interface{}
}

type ItemList

type ItemList struct {
	Items []*ItemEntry
}

func (*ItemList) AddItem

func (il *ItemList) AddItem(ie *ItemEntry) error

Jump to

Keyboard shortcuts

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