module

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckboxInput

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

func NewCheckbox

func NewCheckbox(label string, initial bool) *CheckboxInput

func (*CheckboxInput) Blur

func (c *CheckboxInput) Blur()

func (*CheckboxInput) Focus

func (c *CheckboxInput) Focus()

func (*CheckboxInput) Update

func (c *CheckboxInput) Update(msg tea.Msg) (types.Input, tea.Cmd)

func (*CheckboxInput) Value

func (c *CheckboxInput) Value() any

func (*CheckboxInput) View

func (c *CheckboxInput) View() string

type RadioButton added in v0.1.0

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

func NewRadioButton added in v0.1.0

func NewRadioButton(options []string, initialSelection int) *RadioButton

func (*RadioButton) Blur added in v0.1.0

func (r *RadioButton) Blur()

func (*RadioButton) Focus added in v0.1.0

func (r *RadioButton) Focus()

func (*RadioButton) GetSelectedIndex added in v0.1.0

func (r *RadioButton) GetSelectedIndex() int

GetSelectedIndex returns the index of the currently selected option

func (*RadioButton) SetSelected added in v0.1.0

func (r *RadioButton) SetSelected(index int)

SetSelected sets the selected option by index

func (*RadioButton) Update added in v0.1.0

func (r *RadioButton) Update(msg tea.Msg) (types.Input, tea.Cmd)

func (*RadioButton) Value added in v0.1.0

func (r *RadioButton) Value() any

func (*RadioButton) View added in v0.1.0

func (r *RadioButton) View() string

type TextInput

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

func NewTextInput

func NewTextInput(placeholder, initial string) *TextInput

func (*TextInput) Blur

func (i *TextInput) Blur()

func (*TextInput) Focus

func (i *TextInput) Focus()

func (*TextInput) Update

func (i *TextInput) Update(msg tea.Msg) (types.Input, tea.Cmd)

func (*TextInput) Value

func (i *TextInput) Value() any

func (*TextInput) View

func (i *TextInput) View() string

Jump to

Keyboard shortcuts

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