settings

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(view *View) *Controller

type View

type View struct {
	*ui.Base

	SaveButton        widget.Clickable
	CancelButton      widget.Clickable
	LoadDefaultButton widget.Clickable

	IsDataChanged bool
	// contains filtered or unexported fields
}

func NewView

func NewView(base *ui.Base) *View

func (*View) Info added in v0.4.2

func (v *View) Info() navigator.Info

func (*View) Layout

func (v *View) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions

func (*View) Load

func (v *View) Load(config domain.GlobalConfig)

func (*View) OnEnter added in v0.4.2

func (v *View) OnEnter()

func (*View) Refresh

func (v *View) Refresh()

func (*View) SetOnCancel

func (v *View) SetOnCancel(f func())

func (*View) SetOnChange

func (v *View) SetOnChange(f func(values map[string]any))

func (*View) SetOnLoadDefaults

func (v *View) SetOnLoadDefaults(f func())

func (*View) SetOnSave

func (v *View) SetOnSave(f func())

func (*View) ShowError

func (v *View) ShowError(err error)

func (*View) ShowInfo

func (v *View) ShowInfo(title, message string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL