Documentation
¶
Index ¶
- type FilteredList
- type FilteredTable
- func (ft *FilteredTable) AddRow(cells []*tview.TableCell)
- func (ft *FilteredTable) FilterTable(filter string)
- func (ft *FilteredTable) GetInputCapture(app *tview.Application, pages *tview.Pages) func(event *tcell.EventKey) *tcell.EventKey
- func (ft *FilteredTable) SetRow(row int, cells []*tview.TableCell)
- func (ft *FilteredTable) SetupHeaders(headers []string)
- type QueryView
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 (*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) SetupHeaders ¶
func (ft *FilteredTable) SetupHeaders(headers []string)
Click to show internal directories.
Click to hide internal directories.