Documentation ¶
Index ¶
- type Model
- func (m Model) Accept() string
- func (m Model) AutoComplete(input string, cursorPosition int) tea.Cmd
- func (m Model) Clear() tea.Cmd
- func (m Model) Init() tea.Cmd
- func (m Model) NextColumn() tea.Cmd
- func (m Model) NextResult() tea.Cmd
- func (m Model) NextRow() tea.Cmd
- func (m Model) PreviousColumn() tea.Cmd
- func (m Model) PreviousResult() tea.Cmd
- func (m Model) PreviousRow() tea.Cmd
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- type Option
- type SingleAutoCompleteOptionMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (Model) AutoComplete ¶
AutoComplete returns a command that will start the auto-complete process
func (Model) NextColumn ¶
NextColumn returns a command that will select the next option
func (Model) NextResult ¶
NextResult returns a command that will select the next option
func (Model) PreviousColumn ¶
PreviousColumn returns a command that will select the previous option
func (Model) PreviousResult ¶
PreviousResult returns a command that will select the previous option
func (Model) PreviousRow ¶
PreviousRow returns a command that will select the previous option
type SingleAutoCompleteOptionMsg ¶
SingleAutoCompleteOptionMsg is a message that is sent by the autocomplete model to indicate only one option has been found and should just be accepted
func (SingleAutoCompleteOptionMsg) ForModelID ¶
func (msg SingleAutoCompleteOptionMsg) ForModelID() modelid.ID
Click to show internal directories.
Click to hide internal directories.