Documentation ¶
Index ¶
- type LabeledInput
- type LabeledInputs
- type Mode
- type Model
- func (m *Model) Blur()
- func (m *Model) Focus(mode Mode) tea.Cmd
- func (m *Model) GetHeight() int
- func (m *Model) GetWidth() int
- func (m *Model) IsTyping() bool
- func (m *Model) Reset()
- func (m *Model) SetHeight(height int)
- func (m *Model) SetWidth(width int)
- func (m *Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m *Model) UpdateInputs(updateFunc func(inputs LabeledInputs))
- func (m *Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabeledInput ¶
func NewLabeledInput ¶
func NewLabeledInput(label string, input textinput.Model) LabeledInput
type LabeledInputs ¶
type LabeledInputs []LabeledInput
func (LabeledInputs) Find ¶
func (l LabeledInputs) Find(label string) (int, *LabeledInput)
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func New ¶
func New(onSubmitFunc func(LabeledInputs) tea.Cmd, onUpdateFunc func(LabeledInputs) tea.Cmd, inputs ...LabeledInput) Model
func (*Model) UpdateInputs ¶
func (m *Model) UpdateInputs(updateFunc func(inputs LabeledInputs))
Click to show internal directories.
Click to hide internal directories.