Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseCallback ¶
CloseCallback allows dialogs to perform cleanup when closed.
type CloseDialogMsg ¶
type CloseDialogMsg struct{}
CloseDialogMsg is sent to close the topmost dialog.
type DialogCmp ¶
type DialogCmp interface {
util.Model
Dialogs() []DialogModel
HasDialogs() bool
GetLayers() []*lipgloss.Layer
ActiveModel() util.Model
ActiveDialogID() DialogID
}
DialogCmp manages a stack of dialogs with keyboard navigation.
type DialogModel ¶
DialogModel represents a dialog component that can be displayed.
type KeyMap ¶
KeyMap defines keyboard bindings for dialog management.
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
func (KeyMap) KeyBindings ¶
KeyBindings implements layout.KeyMapProvider
type OpenDialogMsg ¶
type OpenDialogMsg struct {
Model DialogModel
}
OpenDialogMsg is sent to open a new dialog with specified dimensions.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package copilot provides the dialog for Copilot device flow authentication.
|
Package copilot provides the dialog for Copilot device flow authentication. |
|
Package hyper provides the dialog for Hyper device flow authentication.
|
Package hyper provides the dialog for Hyper device flow authentication. |
|
Package models provides the model selection dialog for the TUI.
|
Package models provides the model selection dialog for the TUI. |
Click to show internal directories.
Click to hide internal directories.