widgets

package
v0.0.0-...-69999d2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	ui.Block
	Label       string
	Data        string
	MaxLen      int
	TextFgColor ui.Attribute
	TextBgColor ui.Attribute
	// contains filtered or unexported fields
}

func NewInput

func NewInput() *Input

func (*Input) Buffer

func (i *Input) Buffer() ui.Buffer

func (*Input) InputHandlers

func (i *Input) InputHandlers()

Setup some default handlers for menu navigation

func (*Input) KeyPress

func (i *Input) KeyPress(e ui.Event)

func (*Input) Stream

func (i *Input) Stream() chan string

type Padding

type Padding [2]int // x,y padding

type TermDashHeader

type TermDashHeader struct {
	Error    *ui.List
	Time     *ui.Par
	Previous *ui.Par
	Next     *ui.Par
	Filter   *ui.Par
	// contains filtered or unexported fields
}

func NewTermDashHeader

func NewTermDashHeader() *TermDashHeader

func (*TermDashHeader) Align

func (c *TermDashHeader) Align()

func (*TermDashHeader) Buffer

func (c *TermDashHeader) Buffer() ui.Buffer

func (*TermDashHeader) Height

func (c *TermDashHeader) Height() int

func (*TermDashHeader) SetError

func (c *TermDashHeader) SetError(val string)

func (*TermDashHeader) SetFilter

func (c *TermDashHeader) SetFilter(val string)

func (*TermDashHeader) SetNext

func (c *TermDashHeader) SetNext(set bool)

func (*TermDashHeader) SetPrevious

func (c *TermDashHeader) SetPrevious(set bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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