Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Resize represent that the column // of the tableView should be resized with the terminal window. Resize = -1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TableView ¶
type TableView struct {
// contains filtered or unexported fields
}
TableView implements the view interface. It is a table build on xtui.Table.
func NewTableView ¶
func NewTableView(itemsList []string, headerRows xtui.TableRows, filterCol, rowsPerEntry int, colWidths []int, light bool) *TableView
NewTableView returns a new instance of <*TableView>
func (*TableView) ItemsList ¶
ItemsList returns a list with names based on which the table can be sorted.
func (*TableView) OnScrollEvent ¶
OnScrollEvent handles the scroll event based on the key pressed.
Click to show internal directories.
Click to hide internal directories.