submodels

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormModel

type FormModel struct {
	Inputs []textinput.Model

	Focused int
	// contains filtered or unexported fields
}

func NewFormModel

func NewFormModel(s *state.State) FormModel

func (FormModel) Init

func (m FormModel) Init() tea.Cmd

func (FormModel) Update

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

func (FormModel) View

func (m FormModel) View() string

type InputModel

type InputModel struct {
	Title string
	Input textinput.Model
	// contains filtered or unexported fields
}

func NewInputModel

func NewInputModel() InputModel

func (InputModel) Init

func (m InputModel) Init() tea.Cmd

func (InputModel) Update

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

func (InputModel) View

func (m InputModel) View() string

type SubmitButton

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

func NewSubmitButton

func NewSubmitButton() SubmitButton

func (*SubmitButton) Blur

func (b *SubmitButton) Blur()

func (*SubmitButton) Focus

func (b *SubmitButton) Focus()

func (SubmitButton) Update

func (b SubmitButton) Update(msg tea.Msg) (SubmitButton, tea.Cmd)

func (SubmitButton) View

func (b SubmitButton) View() string

Jump to

Keyboard shortcuts

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