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) 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) 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 ¶
Click to show internal directories.
Click to hide internal directories.