form

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelMsg

type CancelMsg struct{}

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(title string, inputs any) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Inputs

func (m Model) Inputs() any

func (*Model) SetInputs

func (m *Model) SetInputs(inputs any)

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type MultipleChoice

type MultipleChoice struct {
	// contains filtered or unexported fields
}

func NewMultipleChoice

func NewMultipleChoice(choices []string) MultipleChoice

func (MultipleChoice) Index

func (m MultipleChoice) Index() int

func (MultipleChoice) Selected

func (m MultipleChoice) Selected() string

func (*MultipleChoice) SetIndex

func (m *MultipleChoice) SetIndex(index int)

type SubmitMsg

type SubmitMsg struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL