Documentation ¶
Index ¶
- Constants
- type Table
- func (t *Table) AppendToFilter(filter string)
- func (t *Table) ColumnWidths() ([]int, error)
- func (t *Table) Draw(buf *termui.Buffer)
- func (t *Table) Filter() string
- func (t *Table) InitFilter(column, rowsPerEntry int)
- func (t *Table) PageDown()
- func (t *Table) PageUp()
- func (t *Table) ReduceFilter(n int)
- func (t *Table) ScrollDown()
- func (t *Table) ScrollUp()
- func (t *Table) SetRect(x, y, x1, y2 int)
- type TableRows
Constants ¶
View Source
const (
// EmptyCell represents an empty cell in the table.
EmptyCell = ""
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct { *widgets.Table //Rows are the rows of the table. Rows TableRows // colors which will be used to paint the table rows. Colors struct { // default color of each row Text termui.Color // text color of the selected row SelectedRowFg termui.Color // row color of the selected row SelectedRowBg termui.Color } // contains filtered or unexported fields }
Table is extending the Table in the termui/v3/widgets/ package to support scrolling/filtering.
func (*Table) AppendToFilter ¶
AppendToFilter updates the filter of the table.
func (*Table) ColumnWidths ¶
ColumnWidths returns the column widths of the table.
func (*Table) Draw ¶
func (t *Table) Draw(buf *termui.Buffer)
Draw extends the method Draw from tui.Table to also include filtering.
func (*Table) InitFilter ¶
InitFilter initializes the table to support filtering for rows
func (*Table) ReduceFilter ¶
ReduceFilter removes the last n bytes written.
Click to show internal directories.
Click to hide internal directories.