views

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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