Documentation
¶
Index ¶
- type Base
- type Box
- type Button
- type Checkbox
- type Component
- func CreateBox() Component
- func CreateButton() Component
- func CreateCheckbox() Component
- func CreateDropdown() Component
- func CreateFlex() Component
- func CreateForm() Component
- func CreateGrid() Component
- func CreateImage() Component
- func CreateInputField() Component
- func CreateList() Component
- func CreateModal() Component
- func CreateTable() Component
- func CreateTemplate() Component
- func CreateTextArea() Component
- func CreateTreeView() Component
- type Dropdown
- type Flex
- type Form
- type Grid
- type Image
- type InputField
- type List
- type Modal
- type Table
- type Template
- func (t *Template) AddItem(comp *Component, props map[string]interface{}) error
- func (t *Template) CanAddItem() bool
- func (t *Template) GetName() string
- func (t *Template) GetProp(prop string) (interface{}, error)
- func (t *Template) Primitive() tview.Primitive
- func (t *Template) SetProp(prop string, val interface{}) error
- type Textarea
- type TreeView
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]) CanAddItem ¶
type Component ¶
type Component interface {
GetName() string
CanAddItem() bool
SetProp(string, interface{}) error
GetProp(string) (interface{}, error)
}
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 InputField ¶
type InputField struct {
Base[*tview.InputField]
}
Click to show internal directories.
Click to hide internal directories.