Documentation
¶
Index ¶
- Variables
- func AdjustTableDimensions(cols []table.Column, windowWidth int, windowHeight int) (int, int, []table.Column)
- func GetColumns(what TableStyle) []table.Column
- func GetTableHeight(tableHeight int, filteredRowsLen int) int
- func PrintTable(rows []table.Row, p TableStyle) string
- type TableStyle
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.NormalBorder()). BorderForeground(lipgloss.Color("240"))
View Source
var HeaderStyle = table.DefaultStyles().Header. BorderStyle(lipgloss.NormalBorder()). BorderForeground(lipgloss.Color("240")). BorderBottom(true). Bold(false)
View Source
var SelectedStyle = table.DefaultStyles().Selected. Foreground(lipgloss.Color("229")). Background(lipgloss.Color("57")). Bold(false)
Functions ¶
func AdjustTableDimensions ¶
func GetColumns ¶
func GetColumns(what TableStyle) []table.Column
func GetTableHeight ¶
func PrintTable ¶
func PrintTable(rows []table.Row, p TableStyle) string
Types ¶
type TableStyle ¶
type TableStyle int
const ( ConfigTable TableStyle = iota HistoryTable TunnelTable )
Click to show internal directories.
Click to hide internal directories.