Documentation ¶
Index ¶
- Variables
- type Item
- type Model
- type RadioButton
- type Styles
- type Type
- type VarWrapper
- func BoolVar(value *bool, name, descr, group string) VarWrapper
- func FilenameVar(value *string, name, descr, group string, mustexist bool) VarWrapper
- func IntVar[T ~int | ~int8 | ~int16 | ~int32 | ~int64](value *T, name, descr, group string) VarWrapper
- func MultilineVar(value *string, name, descr, group string) VarWrapper
- func RadioStringVar(value *string, name, descr, group string, choices []string) VarWrapper
- func StringVar(value *string, name, descr, group string) VarWrapper
- func (w VarWrapper) AllowedValues() []string
- func (w VarWrapper) Description() string
- func (w VarWrapper) Group() string
- func (w VarWrapper) Name() string
- func (w VarWrapper) Set(s string) error
- func (w VarWrapper) Type() Type
- func (w VarWrapper) Validate(s string) error
- func (w VarWrapper) Value() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidValue = errors.New("invalid value")
Functions ¶
This section is empty.
Types ¶
type Model ¶
type RadioButton ¶
type RadioButton struct {
// contains filtered or unexported fields
}
func (RadioButton) Init ¶
func (r RadioButton) Init() tea.Cmd
func (*RadioButton) SetValues ¶
func (r *RadioButton) SetValues(v []string, selected string)
func (RadioButton) Update ¶
func (r RadioButton) Update(msg tea.Msg) (RadioButton, tea.Cmd)
func (RadioButton) Value ¶
func (r RadioButton) Value() string
func (RadioButton) View ¶
func (r RadioButton) View() string
type VarWrapper ¶
type VarWrapper struct { ItemName string ItemDescr string ItemGroup string ItemType Type ValueFunc func() string SetFunc func(string) error ValidateFunc func(string) error AllowedValuesFunc func() []string }
func BoolVar ¶
func BoolVar(value *bool, name, descr, group string) VarWrapper
func FilenameVar ¶
func FilenameVar(value *string, name, descr, group string, mustexist bool) VarWrapper
func MultilineVar ¶
func MultilineVar(value *string, name, descr, group string) VarWrapper
func RadioStringVar ¶
func RadioStringVar(value *string, name, descr, group string, choices []string) VarWrapper
func StringVar ¶
func StringVar(value *string, name, descr, group string) VarWrapper
func (VarWrapper) AllowedValues ¶
func (w VarWrapper) AllowedValues() []string
func (VarWrapper) Description ¶
func (w VarWrapper) Description() string
func (VarWrapper) Group ¶
func (w VarWrapper) Group() string
func (VarWrapper) Name ¶
func (w VarWrapper) Name() string
func (VarWrapper) Set ¶
func (w VarWrapper) Set(s string) error
func (VarWrapper) Type ¶
func (w VarWrapper) Type() Type
func (VarWrapper) Validate ¶
func (w VarWrapper) Validate(s string) error
func (VarWrapper) Value ¶
func (w VarWrapper) Value() string
Click to show internal directories.
Click to hide internal directories.