Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Frames = []string{
`
/$$ /$$ /$$$$$$ /$$ /$$
| $$ | $$ /$$__ $$ |__/ | $$
| $$ /$$$$$$ /$$$$$$ /$$$$$$$ | $$ \ $$ /$$ /$$ /$$ /$$$$$$$$| $$
| $$ /$$__ $$|_ $$_/ /$$_____/ | $$ | $$| $$ | $$| $$|____ /$$/| $$
| $$ | $$$$$$$$ | $$ | $$$$$$ | $$ | $$| $$ | $$| $$ /$$$$/ |__/
| $$ | $$_____/ | $$ /$$\____ $$ | $$/$$ $$| $$ | $$| $$ /$$__/
| $$$$$$$$| $$$$$$$ | $$$$//$$$$$$$/ | $$$$$$/| $$$$$$/| $$ /$$$$$$$$ /$$
|________/ \_______/ \___/ |_______/ \____ $$$ \______/ |__/|________/|__/
\__/
`,
`
/$$ /$$ /$$$$$$ /$$ /$$
| $$ | $$ /$$__ $$ |__/ | $$
| $$ /$$$$$$ /$$$$$$ /$$$$$$$ | $$ \ $$ /$$ /$$ /$$ /$$$$$$$$| $$
| $$ /$$__ $$|_ $$_/ /$$_____/ | $$ | $$| $$ | $$| $$|____ /$$/| $$
| $$ | $$$$$$$$ | $$ | $$$$$$ | $$ | $$| $$ | $$| $$ /$$$$/ |__/
| $$ | $$_____/ | $$ /$$\____ $$ | $$/$$ $$| $$ | $$| $$ /$$__/
| $$$$$$$$| $$$$$$$ | $$$$//$$$$$$$/ | $$$$$$/| $$$$$$/| $$ /$$$$$$$$ /$$
|________/ \_______/ \___/ |_______/ \____ $$$ \______/ |__/|________/|__/
\__/
`,
}
Functions ¶
Types ¶
type ConfirmationDialog ¶
type ConfirmationDialog struct { Message string Active bool Confirmed bool ConfirmKey key.Binding CancelKey key.Binding }
func NewConfirmationDialog ¶
func NewConfirmationDialog() ConfirmationDialog
func (*ConfirmationDialog) View ¶
func (d *ConfirmationDialog) View() string
type Model ¶
type Model struct { CurrentScreen string Cursor int Choices []string Selected string Tick tea.Cmd Banner string Frame int WindowWidth int WindowHeight int ButtonPos []Rect Table table.Model Buttons []Button Form *huh.Form ConfirmationDialog ConfirmationDialog Focused string IsPlaying bool }
func InitializeChoices ¶
InitializeChoices sets up the initial choices for a given screen
type QuizDynamicFormsCompletedMsg ¶
type QuizDynamicFormsCompletedMsg struct{}
QuizDynamicFormsCompletedMsg is a message used to signal that all dynamic forms has been completed.
type QuizMetaDataFormCompletedMsg ¶
type QuizMetaDataFormCompletedMsg struct{}
QuizMetaDataFormCompletedMsg is a message used to signal that a metadata form has been completed.
Click to show internal directories.
Click to hide internal directories.