Documentation
¶
Overview ¶
Package tui provides TUI components for the csvpp CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the TUI model for viewing CSV++ data.
func NewModel ¶
func NewModel(headers []*csvpp.ColumnHeader, records [][]*csvpp.Field) Model
NewModel creates a new TUI model with the given data.
type Styles ¶
type Styles struct {
Header lipgloss.Style
Cell lipgloss.Style
Selected lipgloss.Style
Help lipgloss.Style
Status lipgloss.Style
FilterPrompt lipgloss.Style
FilterActive lipgloss.Style
}
Styles holds the styles for the TUI components.
func DefaultStyles ¶
func DefaultStyles() Styles
DefaultStyles returns the default styles for the TUI.
Click to show internal directories.
Click to hide internal directories.