table

package
v0.0.0-...-c4a96fa Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateCmd

func UpdateCmd() tea.Cmd

Types

type ColHead

type ColHead struct {
	Name string
	Perc float64
}

type KeyMap

type KeyMap struct {
	LineUp       key.Binding
	LineDown     key.Binding
	PageUp       key.Binding
	PageDown     key.Binding
	HalfPageUp   key.Binding
	HalfPageDown key.Binding
	GotoTop      key.Binding
	GotoBottom   key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

type Model

type Model struct {
	Datasource datasource

	KeyMap KeyMap
	// contains filtered or unexported fields
}

func NewTable

func NewTable(datasource datasource) Model

func (*Model) Blur

func (m *Model) Blur()

func (Model) Cursor

func (m Model) Cursor() int

func (*Model) Focus

func (m *Model) Focus()

func (*Model) GotoBottom

func (m *Model) GotoBottom()

func (*Model) GotoTop

func (m *Model) GotoTop()

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) MoveDown

func (m *Model) MoveDown(n int)

func (*Model) MoveUp

func (m *Model) MoveUp(n int)

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Update

type Update struct{}

Jump to

Keyboard shortcuts

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