views

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardModel

type DashboardModel struct {
	Width  int
	Height int

	// Sub-components
	Table     components.TableModel
	StatusBar components.StatusBarModel

	// Detail panel
	ShowDetail   bool
	DetailTitle  string
	DetailBody   string
	DetailHeight int
	// contains filtered or unexported fields
}

DashboardModel is the main dashboard view combining all components.

func NewDashboard

func NewDashboard(table components.TableModel, statusBar components.StatusBarModel) DashboardModel

NewDashboard creates a new dashboard view model.

func (*DashboardModel) SetSize

func (m *DashboardModel) SetSize(width, height int)

SetSize updates all component sizes for the given terminal dimensions.

func (DashboardModel) View

func (m DashboardModel) View() string

View renders the complete dashboard.

type DashboardStyles

type DashboardStyles struct {
	TitleBar    lipgloss.Style
	DetailPanel lipgloss.Style
	DetailTitle lipgloss.Style
	HelpBar     lipgloss.Style
	HelpKey     lipgloss.Style
	HelpDesc    lipgloss.Style
	HelpSep     string
}

DashboardStyles holds styles for the dashboard layout.

func DefaultDashboardStyles

func DefaultDashboardStyles() DashboardStyles

DefaultDashboardStyles returns the default dashboard styles.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL