Documentation ¶
Overview ¶
Package newkey creates keys for the config file builder.
If you need to use the key values before packing keys, you have to set the key builder with SetBuild.
Index ¶
- func Bool(group, name, label string) *cftype.Key
- func Custom(group, name, label string, makeWidget func(*cftype.Key)) *cftype.Key
- func CustomButton(group, name, label string, calls ...Call) *cftype.Key
- func EmptyFull(group, name string) *cftype.Key
- func Frame(group, name, label, icon string) *cftype.Key
- func LaunchCommand(group, name, label, command string) *cftype.Key
- func Link(group, name, label, linkText, url string) *cftype.Key
- func ListNumbered(group, name, label string, values ...string) *cftype.Key
- func Separator(group, name string) *cftype.Key
- func StringEntry(group, name, label string) *cftype.Key
- func SwitchText(log cdtype.Logger, getValue func() bool, setValue func(bool), ...) func(*cftype.Key)
- func TextArea(group, name, label string, log cdtype.Logger) *cftype.Key
- func TextLabel(group, name, label string) *cftype.Key
- type Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomButton ¶
CustomButton creates a custom key with a label button.
func LaunchCommand ¶
LaunchCommand creates a launch command key.
func ListNumbered ¶
ListNumbered creates a bool key.
func StringEntry ¶
StringEntry creates a string entry key.
func SwitchText ¶
func SwitchText(log cdtype.Logger, getValue func() bool, setValue func(bool), baseText, moreText string) func(*cftype.Key)
SwitchText creates a switch key with extra togglable text. baseText is always visible and moreText only when active. if baseText is empty, the label won't be updated.
Types ¶
Click to show internal directories.
Click to hide internal directories.