Documentation
¶
Index ¶
- type Controller
- type View
- func (v *View) Info() navigator.Info
- func (v *View) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (v *View) Load(config domain.GlobalConfig)
- func (v *View) OnEnter()
- func (v *View) Refresh()
- func (v *View) SetOnCancel(f func())
- func (v *View) SetOnChange(f func(values map[string]any))
- func (v *View) SetOnLoadDefaults(f func())
- func (v *View) SetOnSave(f func())
- func (v *View) ShowError(err error)
- func (v *View) ShowInfo(title, message string)
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 (*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) SetOnCancel ¶
func (v *View) SetOnCancel(f func())
func (*View) SetOnChange ¶
func (*View) SetOnLoadDefaults ¶
func (v *View) SetOnLoadDefaults(f func())
Click to show internal directories.
Click to hide internal directories.