Documentation
¶
Index ¶
- Variables
- type Checkbox
- func (m *Checkbox) Blur()
- func (m *Checkbox) Focus() tea.Cmd
- func (m *Checkbox) Focused() bool
- func (m *Checkbox) HasReacted() bool
- func (m *Checkbox) Init() tea.Cmd
- func (m *Checkbox) ReactFlush()
- func (m *Checkbox) Reset()
- func (m *Checkbox) SetChecked()
- func (m *Checkbox) SetUnchecked()
- func (m *Checkbox) SetValue(checked InputValue) error
- func (m *Checkbox) Toggle()
- func (m *Checkbox) Update(msg tea.Msg) (Input, tea.Cmd)
- func (m *Checkbox) Value() InputValue
- func (m *Checkbox) View() string
- type FilePicker
- func (m *FilePicker) Blur()
- func (m *FilePicker) Focus() tea.Cmd
- func (m *FilePicker) Focused() bool
- func (m *FilePicker) HasReacted() bool
- func (m *FilePicker) Init() tea.Cmd
- func (m *FilePicker) ReactFlush()
- func (m *FilePicker) Reset()
- func (m *FilePicker) SetValue(filePath InputValue) error
- func (m *FilePicker) TriggerSelection() tea.Cmd
- func (m *FilePicker) Update(msg tea.Msg) (Input, tea.Cmd)
- func (m *FilePicker) Value() InputValue
- func (m *FilePicker) View() string
- type Input
- type InputValue
- type Number
- func (m *Number) Blur()
- func (m *Number) ClampValue()
- func (m *Number) Decrement()
- func (m *Number) Focus() tea.Cmd
- func (m *Number) Focused() bool
- func (m *Number) HasReacted() bool
- func (m *Number) Increment()
- func (m *Number) Init() tea.Cmd
- func (m *Number) ReactFlush()
- func (m *Number) Reset()
- func (m *Number) SetDelta(delta float64)
- func (m *Number) SetValue(value InputValue) error
- func (m *Number) Update(msg tea.Msg) (Input, tea.Cmd)
- func (m Number) Value() InputValue
- func (m Number) View() string
- type Reactor
- type TextInput
- func (m *TextInput) Blur()
- func (m *TextInput) Focus() tea.Cmd
- func (m *TextInput) Focused() bool
- func (m *TextInput) HasReacted() bool
- func (m *TextInput) Init() tea.Cmd
- func (m *TextInput) ReactFlush()
- func (m *TextInput) Reset()
- func (m *TextInput) SetValue(str InputValue) error
- func (m *TextInput) Update(msg tea.Msg) (Input, tea.Cmd)
- func (m *TextInput) Value() InputValue
- func (m *TextInput) View() string
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidInputErr = errors.New("Not a valid input.")
Functions ¶
This section is empty.
Types ¶
type Checkbox ¶
type Checkbox struct {
CheckedSymbol string
UncheckedSymbol string
Cursor cursor.Model
// contains filtered or unexported fields
}
func NewCheckBox ¶
func (*Checkbox) HasReacted ¶
func (*Checkbox) ReactFlush ¶
func (m *Checkbox) ReactFlush()
func (*Checkbox) SetChecked ¶
func (m *Checkbox) SetChecked()
func (*Checkbox) SetUnchecked ¶
func (m *Checkbox) SetUnchecked()
func (*Checkbox) SetValue ¶
func (m *Checkbox) SetValue(checked InputValue) error
type FilePicker ¶
type FilePicker struct {
SelectingFile bool
Cursor cursor.Model
// contains filtered or unexported fields
}
func NewFilePicker ¶
func NewFilePicker(width int, allowedTypes ...string) *FilePicker
func (*FilePicker) Blur ¶
func (m *FilePicker) Blur()
func (*FilePicker) Focus ¶
func (m *FilePicker) Focus() tea.Cmd
func (*FilePicker) Focused ¶ added in v1.1.0
func (m *FilePicker) Focused() bool
func (*FilePicker) HasReacted ¶
func (m *FilePicker) HasReacted() bool
func (*FilePicker) Init ¶
func (m *FilePicker) Init() tea.Cmd
func (*FilePicker) ReactFlush ¶
func (m *FilePicker) ReactFlush()
func (*FilePicker) Reset ¶
func (m *FilePicker) Reset()
func (*FilePicker) SetValue ¶
func (m *FilePicker) SetValue(filePath InputValue) error
func (*FilePicker) TriggerSelection ¶
func (m *FilePicker) TriggerSelection() tea.Cmd
func (*FilePicker) View ¶
func (m *FilePicker) View() string
type InputValue ¶
type InputValue any
type Number ¶
type Number struct {
Default float64
DecrementSymbol rune
IncrementSymbol rune
Cursor cursor.Model
// contains filtered or unexported fields
}
func (*Number) ClampValue ¶
func (m *Number) ClampValue()
func (*Number) HasReacted ¶
func (*Number) ReactFlush ¶
func (m *Number) ReactFlush()
func (*Number) SetValue ¶
func (m *Number) SetValue(value InputValue) error
type TextInput ¶
type TextInput struct {
Input textinput.Model
InvalidHighlight string
// contains filtered or unexported fields
}
func (*TextInput) HasReacted ¶
func (*TextInput) ReactFlush ¶
func (m *TextInput) ReactFlush()
func (*TextInput) SetValue ¶
func (m *TextInput) SetValue(str InputValue) error
Click to show internal directories.
Click to hide internal directories.