Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowWizard ¶
func ShowWizard( initialPlan *setup.SetupPlan, callback func(context.Context, setup.SetupPlan, *WizardController), )
ShowWizard launches the setup wizard.
Types ¶
type Step ¶
type Step interface {
// Title returns the title of the step shown in the header.
Title() string
// Description returns a short helpful text for the step.
Description() string
// Content returns the UI components for the step.
Content() fyne.CanvasObject
// Validate checks if the current step's input is valid.
Validate() error
// Apply updates the shared SetupPlan with the step's data.
Apply(plan *setup.SetupPlan)
}
Step defines the interface that each wizard step must implement.
type Wizard ¶
type Wizard = WizardController
Wizard is an alias for WizardController for backward compatibility
type WizardController ¶
type WizardController struct {
// contains filtered or unexported fields
}
WizardController manages the state and navigation of the setup wizard.
func NewWizard ¶
func NewWizard( initialPlan *setup.SetupPlan, callback func(context.Context, setup.SetupPlan, *WizardController), ) *WizardController
NewWizard creates a new wizard controller.
func (*WizardController) Close ¶
func (w *WizardController) Close()
Close closes the wizard window and cancels the internal context.
func (*WizardController) EnableButtons ¶
func (w *WizardController) EnableButtons()
EnableButtons re-enables navigation buttons if a background task fails.