Documentation
¶
Overview ¶
Package input implements generic UI input component.
Index ¶
- type Input
- func (l *Input) Enabled() bool
- func (l *Input) Focus() tea.Cmd
- func (l *Input) Init() tea.Cmd
- func (l *Input) Label() string
- func (l *Input) SetDisplayTooltip(isDisplayed bool)
- func (l *Input) SetEnabled(isEnabled bool)
- func (l *Input) SetLabel(label string)
- func (l *Input) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (l *Input) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct { textinput.Model FocusedPrompt string Tooltip string Err error // contains filtered or unexported fields }
Input - input UI component.
func (*Input) SetDisplayTooltip ¶
SetDisplayTooltip manages tooltip text which is displayed in the beginning of the input field.
Parameters: isDisplayed bool: a boolean value indicating whether the tooltip should be displayed.
func (*Input) SetEnabled ¶
SetEnabled controls whether the component can be focused and changed.
Click to show internal directories.
Click to hide internal directories.