Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InnerIsReady ¶
InnerIsReady is a tea.Cmd that the inner model can send to the wrapper model to indicate that it's ready to exit. This is helpful to the overall program because it allows the wrapper to exit earlier than it would if it waited for its own internal tick expiration event.
Types ¶
type AboutToExitMsg ¶
type AboutToExitMsg struct{}
type Any ¶
type Any interface {
UserWantsToExit() bool
}
Any is a type that can be used to check if a model is a Model without knowing the inner type.
type Model ¶
func (Model[T]) Unwrap ¶
func (m Model[T]) Unwrap() T
Unwrap returns the inner model with its original type.
func (Model[T]) UserWantsToExit ¶
UserWantsToExit returns true if the user pressed Ctrl+C. This can be used when the bubbletea program exits to determine if the user wants to exit the program.
Click to show internal directories.
Click to hide internal directories.