widget

package
v0.6.9-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 1 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 struct {
	// contains filtered or unexported fields
}

func (Base) TypeName

func (W Base) TypeName() string

type Box

type Box struct {
	*tview.Box
	Base
}

func NewBox

func NewBox() *Box

func (*Box) Encode

func (*Box) Encode() (map[string]any, error)

type TextView

type TextView struct {
	*tview.TextView
	Base
}

func NewTextView

func NewTextView() *TextView

func (*TextView) Encode

func (T *TextView) Encode() (map[string]any, error)

type Widget

type Widget interface {
	tview.Primitive

	TypeName() string

	Encode() (map[string]any, error)
}

Widget is designed to fit in containers and be serializable

func WidgetDecodeMap

func WidgetDecodeMap(data map[string]any) (Widget, error)

Jump to

Keyboard shortcuts

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