Documentation ¶
Index ¶
Constants ¶
View Source
const ( TableHeightPadding = 10 TableWidthPadding = 5 )
Variables ¶
View Source
var BaseTableStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.NormalBorder()). BorderForeground(main). Margin(1)
View Source
var TableCellStyle = lipgloss.NewStyle().
Padding(0, 1)
View Source
var TableHeaderStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.NormalBorder()). BorderForeground(main). BorderBottom(true). Bold(true). Padding(0, 1)
View Source
var TableSelectedStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("231")). Background(lipgloss.Color("033")). Bold(false)
View Source
var TableStyles = table.Styles{ Selected: TableSelectedStyle, Header: TableHeaderStyle, Cell: TableCellStyle, }
Functions ¶
func CreateTable ¶
CreateTable creates a table with dynamic column widths based on the provided headers and data. headers: Titles of the columns. dataRows: Data to be displayed, where each TableData represents a row.
func InsertDecimal ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.