Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the Bubble Tea model for the cockpit sidebar.
func New ¶
New creates a sidebar with the given menu items. Chat is active by default; the sidebar is visible by default.
func (*Model) SetActive ¶
SetActive changes the highlighted menu item by ID and synchronizes the keyboard cursor so that Enter selects the same item that is visually active.
func (*Model) SetFocused ¶
SetFocused controls whether the sidebar accepts key input.
func (*Model) SetVisible ¶
SetVisible shows or hides the sidebar.
type PageSelectedMsg ¶
type PageSelectedMsg struct {
ID string
}
PageSelectedMsg is sent when the user selects a sidebar item.
Click to show internal directories.
Click to hide internal directories.