table

package
v0.0.0-...-804f01d Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*option)

func Block

func Block(block *termui.Block) Option

func CursoredRowStyle

func CursoredRowStyle(style termui.Style) Option

func DefaultRowStyle

func DefaultRowStyle(style termui.Style) Option

func FoldedSymbol

func FoldedSymbol(symbol rune) Option

func HeaderStyle

func HeaderStyle(style termui.Style) Option

func UnfoldedSymbol

func UnfoldedSymbol(symbol rune) Option

type Table

type Table struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Table

func (*Table) Draw

func (self *Table) Draw(buf *termui.Buffer)

func (*Table) GetNode

func (self *Table) GetNode() *node.Node

func (*Table) GetRect

func (self *Table) GetRect() image.Rectangle

func (*Table) GetSelectedRow

func (self *Table) GetSelectedRow() int

func (*Table) ScrollDown

func (self *Table) ScrollDown()

func (*Table) ScrollUp

func (self *Table) ScrollUp()

func (*Table) SetHeaders

func (self *Table) SetHeaders(headers []string)

func (*Table) SetNode

func (self *Table) SetNode(node *node.Node)

func (*Table) SetRect

func (self *Table) SetRect(x1, y1, x2, y2 int)

func (*Table) SetWidthFn

func (self *Table) SetWidthFn(fn widthFn)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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