Documentation
¶
Overview ¶
Package input provides a themed text input component.
Index ¶
- type Model
- func (m *Model) Blur()
- func (m *Model) Focus() tea.Cmd
- func (m *Model) Focused() bool
- func (m *Model) Init() tea.Cmd
- func (m *Model) Reset()
- func (m *Model) SetCharLimit(limit int)
- func (m *Model) SetEchoCharacter(char rune)
- func (m *Model) SetEchoMode(mode textinput.EchoMode)
- func (m *Model) SetPlaceholder(placeholder string)
- func (m *Model) SetValue(s string)
- func (m *Model) SetWidth(width int)
- func (m *Model) ShortHelp() []key.Binding
- func (m *Model) Update(msg tea.Msg) tea.Cmd
- func (m *Model) Value() string
- func (m *Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model wraps textinput.Model with themed defaults.
func (*Model) SetCharLimit ¶
SetCharLimit sets the maximum character limit.
func (*Model) SetEchoCharacter ¶
SetEchoCharacter sets the character used for password mode.
func (*Model) SetEchoMode ¶
SetEchoMode sets the echo mode (normal, password, none).
func (*Model) SetPlaceholder ¶
SetPlaceholder sets the placeholder text.
Click to show internal directories.
Click to hide internal directories.