view

package
v0.0.0-...-270aa44 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	// contains filtered or unexported fields
}

this displays the result of running a select - it needs to handle user input (for scrolling and exiting) - in the future might enable some kind of insert/edit mode... will see

func NewTable

func NewTable(screen tcell.Screen, query *query.SelectQuery) *Table

going to attempt using tabwriter package

func (*Table) CursorDown

func (t *Table) CursorDown()

func (*Table) CursorLeft

func (t *Table) CursorLeft()

func (*Table) CursorRight

func (t *Table) CursorRight()

func (*Table) CursorUp

func (t *Table) CursorUp()

func (*Table) Loop

func (t *Table) Loop()

func (*Table) Render

func (t *Table) Render()

type View

type View interface {
	Draw()      // for now this should be enough, although i think there should be a controller
	Next() View // switches to new view (e.g. user runs a select, switch to table view)
}

View is a menu item / screen the app can be in example views: - query result table - edit table (edit row/column inplace) - query insert text box

Jump to

Keyboard shortcuts

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