Documentation
¶
Overview ¶
Package huhext extends the standard charm/huh package with some additional input types.
Index ¶
- type LoopedInput
- func (l *LoopedInput) Blur() tea.Cmd
- func (l *LoopedInput) Description(v string) *LoopedInput
- func (l *LoopedInput) Error() error
- func (l *LoopedInput) Focus() tea.Cmd
- func (l *LoopedInput) GetKey() string
- func (l *LoopedInput) GetValue() any
- func (l *LoopedInput) Init() tea.Cmd
- func (l *LoopedInput) Key(v string) *LoopedInput
- func (l *LoopedInput) KeyBinds() []key.Binding
- func (l *LoopedInput) Run() error
- func (l *LoopedInput) Skip() bool
- func (l *LoopedInput) Title(v string) *LoopedInput
- func (l *LoopedInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (l *LoopedInput) Validate(fn func(v []string) error) *LoopedInput
- func (l *LoopedInput) Value(v []string) *LoopedInput
- func (l *LoopedInput) View() string
- func (l *LoopedInput) WithAccessible(b bool) huh.Field
- func (l *LoopedInput) WithHeight(h int) huh.Field
- func (l *LoopedInput) WithKeyMap(mp *huh.KeyMap) huh.Field
- func (l *LoopedInput) WithPosition(v huh.FieldPosition) huh.Field
- func (l *LoopedInput) WithTheme(v *huh.Theme) huh.Field
- func (l *LoopedInput) WithWidth(v int) huh.Field
- func (l *LoopedInput) Zoom() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoopedInput ¶
type LoopedInput struct {
// contains filtered or unexported fields
}
func NewLoopedInput ¶
func NewLoopedInput() *LoopedInput
func (*LoopedInput) Description ¶
func (l *LoopedInput) Description(v string) *LoopedInput
func (*LoopedInput) Key ¶
func (l *LoopedInput) Key(v string) *LoopedInput
func (*LoopedInput) KeyBinds ¶
func (l *LoopedInput) KeyBinds() []key.Binding
KeyBinds implements huh.Field.
func (*LoopedInput) Title ¶
func (l *LoopedInput) Title(v string) *LoopedInput
func (*LoopedInput) Validate ¶ added in v0.3.0
func (l *LoopedInput) Validate(fn func(v []string) error) *LoopedInput
func (*LoopedInput) Value ¶
func (l *LoopedInput) Value(v []string) *LoopedInput
func (*LoopedInput) WithAccessible ¶
func (l *LoopedInput) WithAccessible(b bool) huh.Field
WithAccessible implements huh.Field.
func (*LoopedInput) WithHeight ¶
func (l *LoopedInput) WithHeight(h int) huh.Field
WithHeight implements huh.Field.
func (*LoopedInput) WithKeyMap ¶
func (l *LoopedInput) WithKeyMap(mp *huh.KeyMap) huh.Field
WithKeyMap implements huh.Field.
func (*LoopedInput) WithPosition ¶
func (l *LoopedInput) WithPosition(v huh.FieldPosition) huh.Field
WithPosition implements huh.Field.
func (*LoopedInput) WithTheme ¶
func (l *LoopedInput) WithTheme(v *huh.Theme) huh.Field
WithTheme implements huh.Field.
func (*LoopedInput) WithWidth ¶
func (l *LoopedInput) WithWidth(v int) huh.Field
WithWidth implements huh.Field.
func (*LoopedInput) Zoom ¶ added in v0.2.0
func (l *LoopedInput) Zoom() bool
Zoom implements huh.Field.
Click to show internal directories.
Click to hide internal directories.