comp

package
v0.0.0-...-aa7a1c6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base[T any] struct {
	// contains filtered or unexported fields
}

func (*Base[T]) AddItem

func (b *Base[T]) AddItem(comp *Component, props map[string]interface{}) error

func (*Base[T]) CanAddItem

func (b *Base[T]) CanAddItem() bool

func (*Base[T]) GetName

func (b *Base[T]) GetName() string

func (*Base[T]) GetProp

func (b *Base[T]) GetProp(prop string) (interface{}, error)

func (*Base[T]) SetProp

func (b *Base[T]) SetProp(prop string, val interface{}) error

type Box

type Box struct {
	Base[*tview.Box]
}

type Button

type Button struct {
	Base[*tview.Button]
}

type Checkbox

type Checkbox struct {
	Base[*tview.Checkbox]
}

type Component

type Component interface {
	GetName() string
	CanAddItem() bool
	SetProp(string, interface{}) error
	GetProp(string) (interface{}, error)
}

func CreateBox

func CreateBox() Component

func CreateButton

func CreateButton() Component

func CreateCheckbox

func CreateCheckbox() Component

func CreateDropdown

func CreateDropdown() Component

func CreateFlex

func CreateFlex() Component

func CreateForm

func CreateForm() Component

func CreateGrid

func CreateGrid() Component

func CreateImage

func CreateImage() Component

func CreateInputField

func CreateInputField() Component

func CreateList

func CreateList() Component

func CreateModal

func CreateModal() Component

func CreateTable

func CreateTable() Component

func CreateTemplate

func CreateTemplate() Component

func CreateTextArea

func CreateTextArea() Component

func CreateTreeView

func CreateTreeView() Component
type Dropdown struct {
	Base[*tview.DropDown]
}

type Flex

type Flex struct {
	Base[*tview.Flex]
}

type Form

type Form struct {
	Base[*tview.Form]
}

type Grid

type Grid struct {
	Base[*tview.Grid]
}

type Image

type Image struct {
	Base[*tview.Image]
}

type InputField

type InputField struct {
	Base[*tview.InputField]
}

type List

type List struct {
	Base[*tview.List]
}
type Modal struct {
	Base[*tview.Modal]
}

type Table

type Table struct {
	Base[*tview.Table]
}

type Template

type Template struct {
}

func (*Template) AddItem

func (t *Template) AddItem(comp *Component, props map[string]interface{}) error

func (*Template) CanAddItem

func (t *Template) CanAddItem() bool

func (*Template) GetName

func (t *Template) GetName() string

func (*Template) GetProp

func (t *Template) GetProp(prop string) (interface{}, error)

func (*Template) Primitive

func (t *Template) Primitive() tview.Primitive

func (*Template) SetProp

func (t *Template) SetProp(prop string, val interface{}) error

type Textarea

type Textarea struct {
	Base[*tview.TextArea]
}

func (*Textarea) SetText

func (t *Textarea) SetText(text string)

type TreeView

type TreeView struct {
	Base[*tview.TreeView]
}

Jump to

Keyboard shortcuts

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