Documentation
¶
Index ¶
- type ErrMsg
- type Input
- type InputList
- type InputModel
- func (that *InputModel) Blur()
- func (that *InputModel) Focus() tea.Cmd
- func (that *InputModel) Init() tea.Cmd
- func (that *InputModel) IsOption() bool
- func (that *InputModel) SetCursorMode(mode cursor.Mode) tea.Cmd
- func (that *InputModel) SetHelpStr(help string)
- func (that *InputModel) SetPromptStyle(style lipgloss.Style)
- func (that *InputModel) SetTextStyle(style lipgloss.Style)
- func (that *InputModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (that *InputModel) Value() string
- func (that *InputModel) View() string
- type InputMultiModel
- func (that *InputMultiModel) AddOneInput(key string, opts ...MOption)
- func (that *InputMultiModel) AddOneOption(name string, values []string, opts ...MOption)
- func (that *InputMultiModel) Init() tea.Cmd
- func (that *InputMultiModel) SetSubmitCmd(scmd tea.Cmd)
- func (that *InputMultiModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (that *InputMultiModel) Values() map[string]string
- func (that *InputMultiModel) View() string
- type Inputer
- type MOption
- type MultiInput
- type Option
- type OptionModel
- func (that *OptionModel) Blur()
- func (that *OptionModel) Focus() tea.Cmd
- func (that *OptionModel) IsOption() bool
- func (that *OptionModel) SetCursorMode(mode cursor.Mode) tea.Cmd
- func (that *OptionModel) SetPromptStyle(style lipgloss.Style)
- func (that *OptionModel) SetTextStyle(style lipgloss.Style)
- func (that *OptionModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (that *OptionModel) Value() string
- func (that *OptionModel) View() string
- type TOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputList ¶ added in v0.4.9
type InputList struct {
// contains filtered or unexported fields
}
func NewInputList ¶ added in v0.4.9
func NewInputList() (ipl *InputList)
func (*InputList) GetByIndex ¶ added in v0.4.9
func (*InputList) GetNameByIndex ¶ added in v0.4.9
type InputModel ¶
type InputModel struct {
// contains filtered or unexported fields
}
func NewInputModel ¶
func NewInputModel(opts ...TOption) (im *InputModel)
func (*InputModel) Blur ¶ added in v0.6.3
func (that *InputModel) Blur()
func (*InputModel) Focus ¶
func (that *InputModel) Focus() tea.Cmd
func (*InputModel) Init ¶
func (that *InputModel) Init() tea.Cmd
func (*InputModel) IsOption ¶ added in v0.6.3
func (that *InputModel) IsOption() bool
func (*InputModel) SetCursorMode ¶ added in v0.6.3
func (that *InputModel) SetCursorMode(mode cursor.Mode) tea.Cmd
func (*InputModel) SetHelpStr ¶ added in v0.6.3
func (that *InputModel) SetHelpStr(help string)
func (*InputModel) SetPromptStyle ¶ added in v0.6.3
func (that *InputModel) SetPromptStyle(style lipgloss.Style)
func (*InputModel) SetTextStyle ¶ added in v0.6.3
func (that *InputModel) SetTextStyle(style lipgloss.Style)
func (*InputModel) Value ¶
func (that *InputModel) Value() string
func (*InputModel) View ¶
func (that *InputModel) View() string
type InputMultiModel ¶ added in v0.4.9
type InputMultiModel struct {
// contains filtered or unexported fields
}
func NewInputMultiModel ¶ added in v0.4.9
func NewInputMultiModel() (imm *InputMultiModel)
func (*InputMultiModel) AddOneInput ¶ added in v0.4.9
func (that *InputMultiModel) AddOneInput(key string, opts ...MOption)
func (*InputMultiModel) AddOneOption ¶ added in v0.6.3
func (that *InputMultiModel) AddOneOption(name string, values []string, opts ...MOption)
func (*InputMultiModel) Init ¶ added in v0.4.9
func (that *InputMultiModel) Init() tea.Cmd
func (*InputMultiModel) SetSubmitCmd ¶ added in v0.6.0
func (that *InputMultiModel) SetSubmitCmd(scmd tea.Cmd)
func (*InputMultiModel) Values ¶ added in v0.4.9
func (that *InputMultiModel) Values() map[string]string
func (*InputMultiModel) View ¶ added in v0.4.9
func (that *InputMultiModel) View() string
type MOption ¶ added in v0.4.9
func MWithCharlimit ¶ added in v0.4.9
func MWithEchoChar ¶ added in v0.4.9
func MWithEchoMode ¶ added in v0.4.9
func MWithPlaceholder ¶ added in v0.4.9
func MWithPrompt ¶ added in v0.6.3
func MWithWidth ¶ added in v0.4.9
type MultiInput ¶ added in v0.4.9
func NewMultiInput ¶ added in v0.4.9
func NewMultiInput() (mipt *MultiInput)
func (*MultiInput) AddOneItem ¶ added in v0.4.9
func (that *MultiInput) AddOneItem(key string, opts ...MOption)
func (*MultiInput) AddOneOption ¶ added in v0.6.3
func (that *MultiInput) AddOneOption(name string, values []string, opts ...MOption)
func (*MultiInput) Run ¶ added in v0.4.9
func (that *MultiInput) Run()
func (*MultiInput) Values ¶ added in v0.4.9
func (that *MultiInput) Values() map[string]string
type OptionModel ¶ added in v0.6.3
type OptionModel struct { *InputModel ValueList []string Idx int }
func NewOptionModel ¶ added in v0.6.3
func NewOptionModel(values []string, opts ...TOption) (om *OptionModel)
func (*OptionModel) Blur ¶ added in v0.6.3
func (that *OptionModel) Blur()
func (*OptionModel) Focus ¶ added in v0.6.3
func (that *OptionModel) Focus() tea.Cmd
func (*OptionModel) IsOption ¶ added in v0.6.3
func (that *OptionModel) IsOption() bool
func (*OptionModel) SetCursorMode ¶ added in v0.6.3
func (that *OptionModel) SetCursorMode(mode cursor.Mode) tea.Cmd
func (*OptionModel) SetPromptStyle ¶ added in v0.6.3
func (that *OptionModel) SetPromptStyle(style lipgloss.Style)
func (*OptionModel) SetTextStyle ¶ added in v0.6.3
func (that *OptionModel) SetTextStyle(style lipgloss.Style)
func (*OptionModel) Value ¶ added in v0.6.3
func (that *OptionModel) Value() string
func (*OptionModel) View ¶ added in v0.6.3
func (that *OptionModel) View() string
type TOption ¶
type TOption func(ipm *InputModel)
func WithCharlimit ¶
func WithEchoChar ¶
func WithEchoMode ¶
func WithPlaceholder ¶
func WithPrompt ¶ added in v0.6.3
Click to show internal directories.
Click to hide internal directories.