Documentation
¶
Index ¶
- type Model
- func (m *Model) GetChoices() []string
- func (m Model) GetSelected() string
- func (m *Model) Height() int
- func (m Model) Init() tea.Cmd
- func (m *Model) Reset()
- func (m *Model) SetChoices(choices []string)
- func (m *Model) SetHeight(height int)
- func (m *Model) SetIsActive(active bool)
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetWidth(width int)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- func (m *Model) Width() int
- type Styles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
Styles Styles
// contains filtered or unexported fields
}
func (*Model) GetChoices ¶
func (Model) GetSelected ¶
func (*Model) SetChoices ¶
func (*Model) SetIsActive ¶
type Styles ¶
type Styles struct {
CheckmarkStyle lipgloss.Style
CheckedChoiceStyle lipgloss.Style
SelectedChoiceStyle lipgloss.Style
PromptStyle lipgloss.Style
ActiveStyle lipgloss.Style
InactiveStyle lipgloss.Style
// contains filtered or unexported fields
}
func DefaultStyles ¶
func DefaultStyles() (s Styles)
Click to show internal directories.
Click to hide internal directories.