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.
Click to show internal directories.
Click to hide internal directories.