widgets

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilteredList

type FilteredList struct {
	List       *tview.List
	Title      string
	Items      []string
	FilterPage string
	// RenderList, if set, is used to render items into the real list.
	// This allows callers to preserve custom prefixes (e.g. "[ ]"/"[+]") and selection behavior.
	RenderList func(list *tview.List, items []string)
}

func NewFilteredList

func NewFilteredList(list *tview.List, title string, items []string, filterPage string) *FilteredList

func (*FilteredList) FilterList

func (fl *FilteredList) FilterList(filter string)

func (*FilteredList) ResetList

func (fl *FilteredList) ResetList()

func (*FilteredList) SetupFilterInput

func (fl *FilteredList) SetupFilterInput(app *tview.Application, pages *tview.Pages) *tview.InputField

func (*FilteredList) ShowFilterInput

func (fl *FilteredList) ShowFilterInput(app *tview.Application, pages *tview.Pages)

type FilteredTable

type FilteredTable struct {
	Table        *tview.Table
	Title        string
	Headers      []string
	OriginalRows [][]*tview.TableCell
	// contains filtered or unexported fields
}

func NewFilteredTable

func NewFilteredTable() *FilteredTable

func (*FilteredTable) AddRow

func (ft *FilteredTable) AddRow(cells []*tview.TableCell)

func (*FilteredTable) FilterTable

func (ft *FilteredTable) FilterTable(filter string)

func (*FilteredTable) GetInputCapture

func (ft *FilteredTable) GetInputCapture(app *tview.Application, pages *tview.Pages) func(event *tcell.EventKey) *tcell.EventKey

func (*FilteredTable) SetRow

func (ft *FilteredTable) SetRow(row int, cells []*tview.TableCell)

func (*FilteredTable) SetupHeaders

func (ft *FilteredTable) SetupHeaders(headers []string)

type QueryView

type QueryView struct {
	*tview.TextView
}

func NewQueryView

func NewQueryView() *QueryView

func (*QueryView) SetSQL

func (qv *QueryView) SetSQL(sql string)

Jump to

Keyboard shortcuts

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