Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPromptInterrupt = errors.New("prompt interrupt")
)
Functions ¶
This section is empty.
Types ¶
type InputModel ¶
type InputModel struct {
// contains filtered or unexported fields
}
func NewTextInput ¶
func NewTextInput(prompt string) *InputModel
func (*InputModel) Error ¶
func (m *InputModel) Error() error
func (*InputModel) Init ¶
func (m *InputModel) Init() tea.Cmd
func (*InputModel) Value ¶
func (m *InputModel) Value() string
func (*InputModel) View ¶
func (m *InputModel) View() string
func (*InputModel) WithValidation ¶
func (m *InputModel) WithValidation(validator InputValidator) *InputModel
type InputValidator ¶
type RunForm ¶
type RunForm func(FormElement) (string, error)
func TeaRunFormWithOptions ¶
func TeaRunFormWithOptions(opts ...tea.ProgramOption) RunForm
Click to show internal directories.
Click to hide internal directories.